2020-04-13 10:33:48 +00:00
|
|
|
package crypto
|
|
|
|
|
2021-03-25 19:42:20 +00:00
|
|
|
import "github.com/nspcc-dev/neo-go/pkg/crypto/hash"
|
|
|
|
|
2021-03-17 13:40:24 +00:00
|
|
|
// VerifiableDecodable represents an object which can be verified and
|
2022-04-20 18:30:09 +00:00
|
|
|
// those hashable part of which can be encoded/decoded.
|
2020-06-18 08:39:47 +00:00
|
|
|
type VerifiableDecodable interface {
|
2021-03-25 19:42:20 +00:00
|
|
|
hash.Hashable
|
2021-03-17 13:40:24 +00:00
|
|
|
EncodeHashableFields() ([]byte, error)
|
|
|
|
DecodeHashableFields([]byte) error
|
2020-06-18 08:39:47 +00:00
|
|
|
}
|