neo-go/pkg/crypto/verifiable.go
Roman Khimov 4c4a980cc0 crypto: add Hashable to VerifiableDecodable
It has to be Hashable.
2021-03-26 13:45:18 +03:00

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
}