Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type State ¶
type State struct { validators.State // contains filtered or unexported fields }
State provides a special case used to handle Avalanche Warp Message verification for messages sent from the Primary Network. Supernets have strictly fewer validators than the Primary Network, so we require signatures from a threshold of the RECEIVING supernet validator set rather than the full Primary Network since the receiving supernet already relies on a majority of its validators being correct.
func NewState ¶
NewState returns a wrapper of validators.State which special cases the handling of the Primary Network.
The wrapped state will return the chainContext's Supernet validator set instead of the Primary Network when the Primary Network SupernetID is passed in.