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. Subnets have strictly fewer validators than the Primary Network, so we require signatures from a threshold of the RECEIVING subnet validator set rather than the full Primary Network since the receiving subnet already relies on a majority of its validators being correct.
func NewState ¶
func NewState(state validators.State, mySubnetID ids.ID, sourceChainID ids.ID, requirePrimaryNetworkSigners bool) *State
NewState returns a wrapper of validators.State which special cases the handling of the Primary Network.
The wrapped state will return the [mySubnetID's] validator set instead of the Primary Network when the Primary Network SubnetID is passed in.