Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetDataRoot ¶
func GetDataRoot(ctx context.Context, eth2Cl Eth2DomainProvider, name DomainName, epoch eth2p0.Epoch, root eth2p0.Root) ([32]byte, error)
GetDataRoot wraps the signing root with the domain and returns signing data hash tree root. The result should be identical to what was signed by the VC.
Types ¶
type DomainName ¶
type DomainName string
DomainName as defined in eth2 spec. See "specs/[phase0|altair]/beacon-chain.md#domain-types" in https://github.com/ethereum/consensus-specs.
const ( DomainBeaconProposer DomainName = "DOMAIN_BEACON_PROPOSER" DomainBeaconAttester DomainName = "DOMAIN_BEACON_ATTESTER" DomainRandao DomainName = "DOMAIN_RANDAO" DomainExit DomainName = "DOMAIN_VOLUNTARY_EXIT" )
type Eth2DomainProvider ¶
type Eth2DomainProvider interface {
eth2client.SpecProvider
eth2client.DomainProvider
}
Eth2DomainProvider is the subset of eth2 beacon api provider required to get a signing domain.
Click to show internal directories.
Click to hide internal directories.