Documentation
¶
Index ¶
- Variables
- func ComputeDomain(domainType []byte, currentVersion [4]byte, genesisValidatorsRoot [32]byte) ([]byte, error)
- func ComputeForkDigest(beaconConfig *clparams.BeaconChainConfig, ...) ([4]byte, error)
- func ComputeForkDigestForVersion(currentVersion [4]byte, genesisValidatorsRoot [32]byte) (digest [4]byte, err error)
- func ComputeForkId(beaconConfig *clparams.BeaconChainConfig, ...) ([]byte, error)
- func ComputeNextForkDigest(beaconConfig *clparams.BeaconChainConfig, ...) ([4]byte, error)
- func ComputeSigningRoot(obj ssz.HashableSSZ, domain []byte) ([32]byte, error)
- func Domain(fork *cltypes.Fork, epoch uint64, domainType [4]byte, ...) ([]byte, error)
- func ForkDigestVersion(digest [4]byte, b *clparams.BeaconChainConfig, ...) (clparams.StateVersion, error)
- func GetLastFork(beaconConfig *clparams.BeaconChainConfig, ...) [4]byte
Constants ¶
This section is empty.
Variables ¶
View Source
var NO_GENESIS_TIME_ERR error = errors.New("genesis time is not set")
View Source
var NO_VALIDATOR_ROOT_HASH error = errors.New("genesis validators root is not set")
Functions ¶
func ComputeDomain ¶
func ComputeForkDigest ¶
func ComputeForkDigest( beaconConfig *clparams.BeaconChainConfig, genesisConfig *clparams.GenesisConfig, ) ([4]byte, error)
func ComputeForkId ¶
func ComputeForkId( beaconConfig *clparams.BeaconChainConfig, genesisConfig *clparams.GenesisConfig, ) ([]byte, error)
func ComputeNextForkDigest ¶
func ComputeNextForkDigest( beaconConfig *clparams.BeaconChainConfig, genesisConfig *clparams.GenesisConfig, ) ([4]byte, error)
func ComputeSigningRoot ¶
func ComputeSigningRoot( obj ssz.HashableSSZ, domain []byte, ) ([32]byte, error)
func ForkDigestVersion ¶
func ForkDigestVersion(digest [4]byte, b *clparams.BeaconChainConfig, genesisValidatorRoot libcommon.Hash) (clparams.StateVersion, error)
func GetLastFork ¶
func GetLastFork( beaconConfig *clparams.BeaconChainConfig, genesisConfig *clparams.GenesisConfig, ) [4]byte
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.