mirror of
https://github.com/QuilibriumNetwork/ceremonyclient.git
synced 2026-02-22 02:47:26 +08:00
* v2.1.0 [omit consensus and adjacent] - this commit will be amended with the full release after the file copy is complete * 2.1.0 main node rollup
17 lines
542 B
Go
17 lines
542 B
Go
package protobufs
|
|
|
|
// SignedMessage is a message that has a signature.
|
|
type SignedMessage interface {
|
|
// ValidateSignature checks the signature of the message.
|
|
// The message contents are expected to be valid - validation
|
|
// of contents must precede validation of the signature.
|
|
ValidateSignature() error
|
|
}
|
|
|
|
// ValidatableMessage is a message that can be validated.
|
|
type ValidatableMessage interface {
|
|
// Validate checks the message contents.
|
|
// It does _not_ verify signatures. You will need to do this externally.
|
|
Validate() error
|
|
}
|