crypto: add Hashable to VerifiableDecodable
It has to be Hashable.
This commit is contained in:
parent
b3f9cd1541
commit
4c4a980cc0
1 changed files with 3 additions and 0 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue