Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // RandomBeaconTag is used for threshold signatures in the random beacon RandomBeaconTag = tag("Random-Beacon") // ConsensusVoteTag is used for Consensus Hotstuff votes ConsensusVoteTag = tag("Consensus-Vote") // CollectorVoteTag is used for Collection Hotstuff votes CollectorVoteTag = tag("Collector-Vote") // ExecutionReceiptTag is used for execution receipts ExecutionReceiptTag = tag("Execution-Receipt") // ResultApprovalTag is used for result approvals ResultApprovalTag = tag("Result-Approval") // SPOCKTag is used to generate SPoCK proofs SPOCKTag = tag("SPoCK") // DKGMessageTag is used for DKG messages DKGMessageTag = tag("DKG-Message") )
Functions ¶
This section is empty.
Types ¶
type Encodable ¶
type Encodable interface {
Encode() []byte
}
Encodable is a type that defines a canonical encoding.
type Marshaler ¶ added in v0.23.2
type Marshaler interface { // Marshaler marshals a value to bytes. // // This function returns an error if the value type is not supported by this marshaler. Marshal(interface{}) ([]byte, error) // Unmarshal unmarshals bytes to a value. // // This functions returns an error if the bytes do not fit the provided value type. Unmarshal([]byte, interface{}) error // MustMarshal marshals a value to bytes. // // This function panics if marshaling fails. MustMarshal(interface{}) []byte // MustUnmarshal unmarshals bytes to a value. // // This function panics if decoding fails. MustUnmarshal([]byte, interface{}) }
Marshaler marshals and unmarshals values to and from bytes.
type SigType ¶ added in v0.26.1
type SigType uint8
SigType is the aggregable signature type.
SigType specifies the role of the signature in the protocol. Both types are aggregatable cryptographic signatures.
- SigTypeRandomBeacon type is for random beacon signatures.
- SigTypeStaking is for Hotstuff signatures.
Click to show internal directories.
Click to hide internal directories.