Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func ComputeForkDigest ¶
ComputeForkDigest returns the fork for the current version and genesis validator root
Spec pseudocode definition:
def compute_fork_digest(current_version: Version, genesis_validators_root: Root) -> ForkDigest: """ Return the 4-byte fork digest for the ``current_version`` and ``genesis_validators_root``. This is a digest primarily used for domain separation on the p2p layer. 4-bytes suffices for practical separation of forks/chains. """ return ForkDigest(compute_fork_data_root(current_version, genesis_validators_root)[:4])
func Hash ¶
Hash defines a function that returns the sha256 checksum of the data passed in. https://github.com/ethereum/consensus-specs/blob/v0.9.3/specs/core/0_beacon-chain.md#hash
func New ¶
func New(opt beaconprotocol.Options) (beaconprotocol.Beacon, error)
New init new client and go-client instance
Types ¶
type Client ¶
type Client interface {
eth2client.Service
eth2client.AttestationDataProvider
eth2client.AggregateAttestationProvider
eth2client.AggregateAttestationsSubmitter
eth2client.AttestationDataProvider
eth2client.AttestationsSubmitter
eth2client.BeaconCommitteeSubscriptionsSubmitter
eth2client.SyncCommitteeSubscriptionsSubmitter
eth2client.AttesterDutiesProvider
eth2client.ProposerDutiesProvider
eth2client.SyncCommitteeDutiesProvider
eth2client.NodeSyncingProvider
eth2client.BeaconBlockProposalProvider
eth2client.BeaconBlockSubmitter
eth2client.DomainProvider
eth2client.BeaconBlockRootProvider
eth2client.SyncCommitteeMessagesSubmitter
eth2client.BeaconBlockRootProvider
eth2client.SyncCommitteeContributionProvider
eth2client.SyncCommitteeContributionsSubmitter
eth2client.ValidatorsProvider
eth2client.ProposalPreparationsSubmitter
}
Client defines all go-eth2-client interfaces used in ssv
Click to show internal directories.
Click to hide internal directories.