From 4c4a980cc018ac1401d4696e163a71efd4e44f65 Mon Sep 17 00:00:00 2001 From: Roman Khimov Date: Thu, 25 Mar 2021 22:42:20 +0300 Subject: [PATCH] crypto: add Hashable to VerifiableDecodable It has to be Hashable. --- pkg/crypto/verifiable.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkg/crypto/verifiable.go b/pkg/crypto/verifiable.go index 40ff7ba1a..68670ef16 100644 --- a/pkg/crypto/verifiable.go +++ b/pkg/crypto/verifiable.go @@ -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 }