forked from TrueCloudLab/neoneo-go
a7cce3f894
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.
13 lines
315 B
Go
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
|
|
}
|