Documentation ¶
Index ¶
- Variables
- func ByteArrayToU16Array(src []byte) []uint16
- func CountSetBits(arr [64]byte) int
- func SliceTo32Bytes(in []byte) [32]byte
- func U16ArrayTo32ByteArray(src []uint16) [32]byte
- func U16ArrayToByteArray(src []uint16) []byte
- type BeaconClient
- type EvmProof
- type LightClient
- type Prover
- type ProverClient
- type ProverResponse
- type RotateArgs
- type Spec
- type StepArgs
Constants ¶
This section is empty.
Variables ¶
View Source
var (
SYNC_COMMITTEE_DOMAIN phase0.DomainType = [4]byte{7, 0, 0, 0}
)
Functions ¶
func ByteArrayToU16Array ¶
func CountSetBits ¶
func SliceTo32Bytes ¶
func U16ArrayTo32ByteArray ¶
func U16ArrayToByteArray ¶
Types ¶
type BeaconClient ¶
type LightClient ¶
type LightClient interface { FinalityUpdate() (*consensus.LightClientFinalityUpdateDeneb, error) Updates(period uint64) ([]*consensus.LightClientUpdateDeneb, error) Bootstrap(blockRoot string) (*consensus.LightClientBootstrapDeneb, error) }
type Prover ¶
type Prover struct {
// contains filtered or unexported fields
}
func NewProver ¶
func NewProver( proverClient ProverClient, beaconClient BeaconClient, lightClient LightClient, spec Spec, finalityTreshold uint64, slotsPerEpoch uint64, ) *Prover
func (*Prover) RotateArgs ¶
func (p *Prover) RotateArgs(period uint64) (*RotateArgs, error)
func (*Prover) RotateProof ¶
func (p *Prover) RotateProof(args *RotateArgs) (*EvmProof[struct{}], error)
RotateProof generates the proof for the sync committee rotation for the period
type ProverClient ¶
type ProverResponse ¶
type RotateArgs ¶
Click to show internal directories.
Click to hide internal directories.