mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2024-11-23 23:30:36 +00:00
17 lines
450 B
Go
17 lines
450 B
Go
package crypto
|
|
|
|
import "github.com/nspcc-dev/neo-go/pkg/util"
|
|
|
|
// Verifiable represents an object which can be verified.
|
|
type Verifiable interface {
|
|
GetSignedPart() []byte
|
|
GetSignedHash() util.Uint256
|
|
}
|
|
|
|
// VerifiableDecodable represents an object which can be verified and
|
|
// those hashable part can be encoded/decoded.
|
|
type VerifiableDecodable interface {
|
|
Verifiable
|
|
EncodeHashableFields() ([]byte, error)
|
|
DecodeHashableFields([]byte) error
|
|
}
|