neoneo-go/pkg/crypto/verifiable.go
Roman Khimov df12adaa9e crypto: remove crypto.Verifiable interface
We can now verify any hash.Hashable thing.
2021-03-26 13:45:18 +03:00

8 lines
248 B
Go

package crypto
// VerifiableDecodable represents an object which can be verified and
// those hashable part can be encoded/decoded.
type VerifiableDecodable interface {
EncodeHashableFields() ([]byte, error)
DecodeHashableFields([]byte) error
}