crypto: add Hashable to VerifiableDecodable

It has to be Hashable.
This commit is contained in:
Roman Khimov 2021-03-25 22:42:20 +03:00
parent b3f9cd1541
commit 4c4a980cc0

View file

@ -1,8 +1,11 @@
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
}