forked from TrueCloudLab/neoneo-go
df12adaa9e
We can now verify any hash.Hashable thing.
8 lines
248 B
Go
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
|
|
}
|