mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2024-11-23 13:38:35 +00:00
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
|
|
}
|