mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2024-12-29 09:27:36 +00:00
4c4a980cc0
It has to be Hashable.
11 lines
317 B
Go
11 lines
317 B
Go
package crypto
|
|
|
|
import "github.com/nspcc-dev/neo-go/pkg/crypto/hash"
|
|
|
|
// VerifiableDecodable represents an object which can be verified and
|
|
// those hashable part can be encoded/decoded.
|
|
type VerifiableDecodable interface {
|
|
hash.Hashable
|
|
EncodeHashableFields() ([]byte, error)
|
|
DecodeHashableFields([]byte) error
|
|
}
|