neoneo-go/pkg/crypto/verifiable.go
Roman Khimov a7cce3f894 smartcontract: use new VerifiableDecodable for ParameterContext
And implement it for Transaction, the only user of ParameterContext for
now. Which make correct signing/verifying possible for cases when
serialization for general transmission and signing differ.
2020-06-18 12:12:56 +03:00

13 lines
315 B
Go

package crypto
// Verifiable represents an object which can be verified.
type Verifiable interface {
GetSignedPart() []byte
}
// VerifiableDecodable represents an object which can be both verified and
// decoded from given data.
type VerifiableDecodable interface {
Verifiable
DecodeSignedPart([]byte) error
}