Documentation
¶
Index ¶
Constants ¶
View Source
const CodecVersion = warp.CodecVersion + 1
Variables ¶
View Source
var Codec codec.Manager
Functions ¶
func NewBLSAuth ¶
func NewBLSAuth(config *Config) (BLSSigner, BLSVerifier)
Types ¶
type BLSSigner ¶
type BLSSigner struct {
// contains filtered or unexported fields
}
BLSSigner signs messages encoded with the provided ChainID and NetworkID. using the SignBLS function.
type BLSVerifier ¶
type BLSVerifier struct {
// contains filtered or unexported fields
}
type Config ¶
type Config struct {
Ctx SimplexChainContext
Log logging.Logger
// Validators is a map of node IDs to their validator information.
// This tells the node about the current membership set, and should be consistent
// across all nodes in the subnet.
Validators map[ids.NodeID]*validators.GetValidatorOutput
// SignBLS is the signing function used for this node to sign messages.
SignBLS SignFunc
}
Config wraps all the parameters needed for a simplex engine
type SimplexChainContext ¶
type SimplexChainContext struct {
// Network is the ID of the network this context exists within.
NodeID ids.NodeID
// ChainID is the ID of the chain this context exists within.
ChainID ids.ID
// NodeID is the ID of this node
NetworkID uint32
}
Context is information about the current execution.
Click to show internal directories.
Click to hide internal directories.