Documentation
¶
Index ¶
- func GetDataRoot(ctx context.Context, eth2Cl eth2wrap.Client, name DomainName, ...) ([32]byte, error)
- func GetDomain(ctx context.Context, eth2Cl eth2wrap.Client, name DomainName, ...) (eth2p0.Domain, error)
- func VerifyAggregateAndProof(ctx context.Context, eth2Cl eth2wrap.Client, pubkey *bls_sig.PublicKey, ...) error
- func VerifyAttestation(ctx context.Context, eth2Cl eth2wrap.Client, pubkey *bls_sig.PublicKey, ...) error
- func VerifyBeaconCommitteeSelection(ctx context.Context, eth2Cl eth2wrap.Client, pubkey *bls_sig.PublicKey, ...) error
- func VerifyBlindedBlock(ctx context.Context, eth2Cl eth2wrap.Client, pubkey *bls_sig.PublicKey, ...) error
- func VerifyBlock(ctx context.Context, eth2Cl eth2wrap.Client, pubkey *bls_sig.PublicKey, ...) error
- func VerifyRandao(ctx context.Context, eth2Cl eth2wrap.Client, pubkey *bls_sig.PublicKey, ...) error
- func VerifySyncCommitteeMessage(ctx context.Context, eth2Cl eth2wrap.Client, pubkey *bls_sig.PublicKey, ...) error
- func VerifyValidatorRegistration(ctx context.Context, eth2Cl eth2wrap.Client, pubkey *bls_sig.PublicKey, ...) error
- func VerifyVoluntaryExit(ctx context.Context, eth2Cl eth2wrap.Client, pubkey *bls_sig.PublicKey, ...) error
- type DomainName
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetDataRoot ¶
func GetDataRoot(ctx context.Context, eth2Cl eth2wrap.Client, 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.
func GetDomain ¶
func GetDomain(ctx context.Context, eth2Cl eth2wrap.Client, name DomainName, epoch eth2p0.Epoch) (eth2p0.Domain, error)
GetDomain returns the beacon domain for the provided type.
func VerifyAggregateAndProof ¶ added in v0.10.1
func VerifyAttestation ¶ added in v0.10.0
func VerifyBeaconCommitteeSelection ¶ added in v0.11.0
func VerifyBlindedBlock ¶ added in v0.10.0
func VerifyBlock ¶ added in v0.10.0
func VerifyRandao ¶ added in v0.10.0
func VerifySyncCommitteeMessage ¶ added in v0.11.0
func VerifyValidatorRegistration ¶ added in v0.10.0
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" DomainApplicationBuilder DomainName = "DOMAIN_APPLICATION_BUILDER" DomainSelectionProof DomainName = "DOMAIN_SELECTION_PROOF" DomainAggregateAndProof DomainName = "DOMAIN_AGGREGATE_AND_PROOF" DomainSyncCommittee DomainName = "DOMAIN_SYNC_COMMITTEE" DomainSyncCommitteeSelectionProof DomainName = "DOMAIN_SYNC_COMMITTEE_SELECTION_PROOF" DomainContributionAndProof DomainName = "DOMAIN_CONTRIBUTION_AND_PROOF" DomainDeposit DomainName = "DOMAIN_DEPOSIT" )
Click to show internal directories.
Click to hide internal directories.