Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Message ¶
type Message interface {
GetType() string
}
Message sets the default methods a real message must implement.
type Seal ¶
type Seal struct {
Signature *ED25519.Signature `json:"signature"`
Signer *ED25519.PublicKey `json:"signer"`
}
Seal is a wrapper to an ED25519 signature and its corresponding ED25519 public key.
type SealState ¶
type SealState struct {
Message Message `json:"message"`
ChainID string `json:"chain_id"`
NonceTime *Time `json:"nonce_time"`
}
SealState wraps a message and additional values in order to define the unique message state to be signed.
func (*SealState) GetSignBytes ¶
GetSignBytes returns the sorted and marshaled values of a seal state.
Click to show internal directories.
Click to hide internal directories.