2020-04-13 10:33:48 +00:00
|
|
|
package crypto
|
|
|
|
|
2020-08-29 15:44:45 +00:00
|
|
|
import "github.com/nspcc-dev/neo-go/pkg/util"
|
|
|
|
|
2020-04-13 10:33:48 +00:00
|
|
|
// Verifiable represents an object which can be verified.
|
|
|
|
type Verifiable interface {
|
|
|
|
GetSignedPart() []byte
|
2020-08-29 15:44:45 +00:00
|
|
|
GetSignedHash() util.Uint256
|
2020-04-13 10:33:48 +00:00
|
|
|
}
|
2020-06-18 08:39:47 +00:00
|
|
|
|
|
|
|
// VerifiableDecodable represents an object which can be both verified and
|
|
|
|
// decoded from given data.
|
|
|
|
type VerifiableDecodable interface {
|
|
|
|
Verifiable
|
|
|
|
DecodeSignedPart([]byte) error
|
|
|
|
}
|