neoneo-go/pkg/crypto/verifiable.go

18 lines
450 B
Go
Raw Normal View History

package crypto
import "github.com/nspcc-dev/neo-go/pkg/util"
// Verifiable represents an object which can be verified.
type Verifiable interface {
GetSignedPart() []byte
GetSignedHash() util.Uint256
}
2021-03-17 13:40:24 +00:00
// VerifiableDecodable represents an object which can be verified and
// those hashable part can be encoded/decoded.
type VerifiableDecodable interface {
Verifiable
2021-03-17 13:40:24 +00:00
EncodeHashableFields() ([]byte, error)
DecodeHashableFields([]byte) error
}