Documentation ¶
Overview ¶
Code generated by fastssz. DO NOT EDIT. Hash: fa97a18404df62375826ed5ee7ded00832a9164171537b8327e9357589e54c7a Version: 0.1.3
Code generated by fastssz. DO NOT EDIT. Hash: fa97a18404df62375826ed5ee7ded00832a9164171537b8327e9357589e54c7a Version: 0.1.3
Code generated by fastssz. DO NOT EDIT. Hash: fa97a18404df62375826ed5ee7ded00832a9164171537b8327e9357589e54c7a Version: 0.1.3
Code generated by fastssz. DO NOT EDIT. Hash: fa97a18404df62375826ed5ee7ded00832a9164171537b8327e9357589e54c7a Version: 0.1.3
Code generated by fastssz. DO NOT EDIT. Hash: fa97a18404df62375826ed5ee7ded00832a9164171537b8327e9357589e54c7a Version: 0.1.3
Code generated by fastssz. DO NOT EDIT. Hash: fa97a18404df62375826ed5ee7ded00832a9164171537b8327e9357589e54c7a Version: 0.1.3
Code generated by fastssz. DO NOT EDIT. Hash: fa97a18404df62375826ed5ee7ded00832a9164171537b8327e9357589e54c7a Version: 0.1.3
Code generated by fastssz. DO NOT EDIT. Hash: fa97a18404df62375826ed5ee7ded00832a9164171537b8327e9357589e54c7a Version: 0.1.3
Code generated by fastssz. DO NOT EDIT. Hash: fa97a18404df62375826ed5ee7ded00832a9164171537b8327e9357589e54c7a Version: 0.1.3
Code generated by fastssz. DO NOT EDIT. Hash: fa97a18404df62375826ed5ee7ded00832a9164171537b8327e9357589e54c7a Version: 0.1.3
Code generated by fastssz. DO NOT EDIT. Hash: fa97a18404df62375826ed5ee7ded00832a9164171537b8327e9357589e54c7a Version: 0.1.3
Code generated by fastssz. DO NOT EDIT. Hash: fa97a18404df62375826ed5ee7ded00832a9164171537b8327e9357589e54c7a Version: 0.1.3
Code generated by fastssz. DO NOT EDIT. Hash: fa97a18404df62375826ed5ee7ded00832a9164171537b8327e9357589e54c7a Version: 0.1.3
Code generated by fastssz. DO NOT EDIT. Hash: fa97a18404df62375826ed5ee7ded00832a9164171537b8327e9357589e54c7a Version: 0.1.3
Code generated by fastssz. DO NOT EDIT. Hash: fa97a18404df62375826ed5ee7ded00832a9164171537b8327e9357589e54c7a Version: 0.1.3
Code generated by fastssz. DO NOT EDIT. Hash: fa97a18404df62375826ed5ee7ded00832a9164171537b8327e9357589e54c7a Version: 0.1.3
Code generated by fastssz. DO NOT EDIT. Hash: fa97a18404df62375826ed5ee7ded00832a9164171537b8327e9357589e54c7a Version: 0.1.3
Code generated by fastssz. DO NOT EDIT. Hash: fa97a18404df62375826ed5ee7ded00832a9164171537b8327e9357589e54c7a Version: 0.1.3
Code generated by fastssz. DO NOT EDIT. Hash: fa97a18404df62375826ed5ee7ded00832a9164171537b8327e9357589e54c7a Version: 0.1.3
Code generated by fastssz. DO NOT EDIT. Hash: fa97a18404df62375826ed5ee7ded00832a9164171537b8327e9357589e54c7a Version: 0.1.3
Code generated by fastssz. DO NOT EDIT. Hash: fa97a18404df62375826ed5ee7ded00832a9164171537b8327e9357589e54c7a Version: 0.1.3
Code generated by fastssz. DO NOT EDIT. Hash: fa97a18404df62375826ed5ee7ded00832a9164171537b8327e9357589e54c7a Version: 0.1.3
Code generated by fastssz. DO NOT EDIT. Hash: fa97a18404df62375826ed5ee7ded00832a9164171537b8327e9357589e54c7a Version: 0.1.3
Code generated by fastssz. DO NOT EDIT. Hash: fa97a18404df62375826ed5ee7ded00832a9164171537b8327e9357589e54c7a Version: 0.1.3
Code generated by fastssz. DO NOT EDIT. Hash: fa97a18404df62375826ed5ee7ded00832a9164171537b8327e9357589e54c7a Version: 0.1.3
Index ¶
- Constants
- type AggregateAndProof
- func (a *AggregateAndProof) GetTree() (*ssz.Node, error)
- func (a *AggregateAndProof) HashTreeRoot() ([32]byte, error)
- func (a *AggregateAndProof) HashTreeRootWith(hh ssz.HashWalker) (err error)
- func (a *AggregateAndProof) MarshalJSON() ([]byte, error)
- func (a *AggregateAndProof) MarshalSSZ() ([]byte, error)
- func (a *AggregateAndProof) MarshalSSZTo(buf []byte) (dst []byte, err error)
- func (a *AggregateAndProof) MarshalYAML() ([]byte, error)
- func (a *AggregateAndProof) SizeSSZ() (size int)
- func (a *AggregateAndProof) String() string
- func (a *AggregateAndProof) UnmarshalJSON(input []byte) error
- func (a *AggregateAndProof) UnmarshalSSZ(buf []byte) error
- func (a *AggregateAndProof) UnmarshalYAML(input []byte) error
- type Attestation
- func (a *Attestation) GetTree() (*ssz.Node, error)
- func (a *Attestation) HashTreeRoot() ([32]byte, error)
- func (a *Attestation) HashTreeRootWith(hh ssz.HashWalker) (err error)
- func (a *Attestation) MarshalJSON() ([]byte, error)
- func (a *Attestation) MarshalSSZ() ([]byte, error)
- func (a *Attestation) MarshalSSZTo(buf []byte) (dst []byte, err error)
- func (a *Attestation) MarshalYAML() ([]byte, error)
- func (a *Attestation) SizeSSZ() (size int)
- func (a *Attestation) String() string
- func (a *Attestation) UnmarshalJSON(input []byte) error
- func (a *Attestation) UnmarshalSSZ(buf []byte) error
- func (a *Attestation) UnmarshalYAML(input []byte) error
- type AttestationData
- func (a *AttestationData) GetTree() (*ssz.Node, error)
- func (a *AttestationData) HashTreeRoot() ([32]byte, error)
- func (a *AttestationData) HashTreeRootWith(hh ssz.HashWalker) (err error)
- func (a *AttestationData) MarshalJSON() ([]byte, error)
- func (a *AttestationData) MarshalSSZ() ([]byte, error)
- func (a *AttestationData) MarshalSSZTo(buf []byte) (dst []byte, err error)
- func (a *AttestationData) MarshalYAML() ([]byte, error)
- func (a *AttestationData) SizeSSZ() (size int)
- func (a *AttestationData) String() string
- func (a *AttestationData) UnmarshalJSON(input []byte) error
- func (a *AttestationData) UnmarshalSSZ(buf []byte) error
- func (a *AttestationData) UnmarshalYAML(input []byte) error
- type AttesterSlashing
- func (a *AttesterSlashing) GetTree() (*ssz.Node, error)
- func (a *AttesterSlashing) HashTreeRoot() ([32]byte, error)
- func (a *AttesterSlashing) HashTreeRootWith(hh ssz.HashWalker) (err error)
- func (a *AttesterSlashing) MarshalJSON() ([]byte, error)
- func (a *AttesterSlashing) MarshalSSZ() ([]byte, error)
- func (a *AttesterSlashing) MarshalSSZTo(buf []byte) (dst []byte, err error)
- func (a *AttesterSlashing) MarshalYAML() ([]byte, error)
- func (a *AttesterSlashing) SizeSSZ() (size int)
- func (a *AttesterSlashing) String() string
- func (a *AttesterSlashing) UnmarshalJSON(input []byte) error
- func (a *AttesterSlashing) UnmarshalSSZ(buf []byte) error
- func (a *AttesterSlashing) UnmarshalYAML(input []byte) error
- type BLSPubKey
- func (p BLSPubKey) Format(state fmt.State, v rune)
- func (p BLSPubKey) IsInfinity() bool
- func (p BLSPubKey) IsZero() bool
- func (p BLSPubKey) MarshalJSON() ([]byte, error)
- func (p BLSPubKey) MarshalYAML() ([]byte, error)
- func (p BLSPubKey) String() string
- func (p *BLSPubKey) UnmarshalJSON(input []byte) error
- func (p *BLSPubKey) UnmarshalYAML(input []byte) error
- type BLSSignature
- func (s BLSSignature) Format(state fmt.State, v rune)
- func (s BLSSignature) IsInfinity() bool
- func (s BLSSignature) IsZero() bool
- func (s BLSSignature) MarshalJSON() ([]byte, error)
- func (s BLSSignature) MarshalYAML() ([]byte, error)
- func (s BLSSignature) String() string
- func (s *BLSSignature) UnmarshalJSON(input []byte) error
- func (s *BLSSignature) UnmarshalYAML(input []byte) error
- type BeaconBlock
- func (b *BeaconBlock) GetTree() (*ssz.Node, error)
- func (b *BeaconBlock) HashTreeRoot() ([32]byte, error)
- func (b *BeaconBlock) HashTreeRootWith(hh ssz.HashWalker) (err error)
- func (b *BeaconBlock) MarshalJSON() ([]byte, error)
- func (b *BeaconBlock) MarshalSSZ() ([]byte, error)
- func (b *BeaconBlock) MarshalSSZTo(buf []byte) (dst []byte, err error)
- func (b *BeaconBlock) MarshalYAML() ([]byte, error)
- func (b *BeaconBlock) SizeSSZ() (size int)
- func (b *BeaconBlock) String() string
- func (b *BeaconBlock) UnmarshalJSON(input []byte) error
- func (b *BeaconBlock) UnmarshalSSZ(buf []byte) error
- func (b *BeaconBlock) UnmarshalYAML(input []byte) error
- type BeaconBlockBody
- func (b *BeaconBlockBody) GetTree() (*ssz.Node, error)
- func (b *BeaconBlockBody) HashTreeRoot() ([32]byte, error)
- func (b *BeaconBlockBody) HashTreeRootWith(hh ssz.HashWalker) (err error)
- func (b *BeaconBlockBody) MarshalJSON() ([]byte, error)
- func (b *BeaconBlockBody) MarshalSSZ() ([]byte, error)
- func (b *BeaconBlockBody) MarshalSSZTo(buf []byte) (dst []byte, err error)
- func (b *BeaconBlockBody) MarshalYAML() ([]byte, error)
- func (b *BeaconBlockBody) SizeSSZ() (size int)
- func (b *BeaconBlockBody) String() string
- func (b *BeaconBlockBody) UnmarshalJSON(input []byte) error
- func (b *BeaconBlockBody) UnmarshalSSZ(buf []byte) error
- func (b *BeaconBlockBody) UnmarshalYAML(input []byte) error
- type BeaconBlockHeader
- func (b *BeaconBlockHeader) GetTree() (*ssz.Node, error)
- func (b *BeaconBlockHeader) HashTreeRoot() ([32]byte, error)
- func (b *BeaconBlockHeader) HashTreeRootWith(hh ssz.HashWalker) (err error)
- func (b *BeaconBlockHeader) MarshalJSON() ([]byte, error)
- func (b *BeaconBlockHeader) MarshalSSZ() ([]byte, error)
- func (b *BeaconBlockHeader) MarshalSSZTo(buf []byte) (dst []byte, err error)
- func (b *BeaconBlockHeader) MarshalYAML() ([]byte, error)
- func (b *BeaconBlockHeader) SizeSSZ() (size int)
- func (b *BeaconBlockHeader) String() string
- func (b *BeaconBlockHeader) UnmarshalJSON(input []byte) error
- func (b *BeaconBlockHeader) UnmarshalSSZ(buf []byte) error
- func (b *BeaconBlockHeader) UnmarshalYAML(input []byte) error
- type BeaconState
- func (b *BeaconState) GetTree() (*ssz.Node, error)
- func (b *BeaconState) HashTreeRoot() ([32]byte, error)
- func (b *BeaconState) HashTreeRootWith(hh ssz.HashWalker) (err error)
- func (s *BeaconState) MarshalJSON() ([]byte, error)
- func (b *BeaconState) MarshalSSZ() ([]byte, error)
- func (b *BeaconState) MarshalSSZTo(buf []byte) (dst []byte, err error)
- func (s *BeaconState) MarshalYAML() ([]byte, error)
- func (b *BeaconState) SizeSSZ() (size int)
- func (s *BeaconState) String() string
- func (s *BeaconState) UnmarshalJSON(input []byte) error
- func (b *BeaconState) UnmarshalSSZ(buf []byte) error
- func (s *BeaconState) UnmarshalYAML(input []byte) error
- type Checkpoint
- func (c *Checkpoint) GetTree() (*ssz.Node, error)
- func (c *Checkpoint) HashTreeRoot() ([32]byte, error)
- func (c *Checkpoint) HashTreeRootWith(hh ssz.HashWalker) (err error)
- func (c *Checkpoint) MarshalJSON() ([]byte, error)
- func (c *Checkpoint) MarshalSSZ() ([]byte, error)
- func (c *Checkpoint) MarshalSSZTo(buf []byte) (dst []byte, err error)
- func (c *Checkpoint) MarshalYAML() ([]byte, error)
- func (c *Checkpoint) SizeSSZ() (size int)
- func (c *Checkpoint) String() string
- func (c *Checkpoint) UnmarshalJSON(input []byte) error
- func (c *Checkpoint) UnmarshalSSZ(buf []byte) error
- func (c *Checkpoint) UnmarshalYAML(input []byte) error
- type CommitteeIndex
- type Deposit
- func (d *Deposit) GetTree() (*ssz.Node, error)
- func (d *Deposit) HashTreeRoot() ([32]byte, error)
- func (d *Deposit) HashTreeRootWith(hh ssz.HashWalker) (err error)
- func (d *Deposit) MarshalJSON() ([]byte, error)
- func (d *Deposit) MarshalSSZ() ([]byte, error)
- func (d *Deposit) MarshalSSZTo(buf []byte) (dst []byte, err error)
- func (d *Deposit) MarshalYAML() ([]byte, error)
- func (d *Deposit) SizeSSZ() (size int)
- func (d *Deposit) String() string
- func (d *Deposit) UnmarshalJSON(input []byte) error
- func (d *Deposit) UnmarshalSSZ(buf []byte) error
- func (d *Deposit) UnmarshalYAML(input []byte) error
- type DepositData
- func (d *DepositData) GetTree() (*ssz.Node, error)
- func (d *DepositData) HashTreeRoot() ([32]byte, error)
- func (d *DepositData) HashTreeRootWith(hh ssz.HashWalker) (err error)
- func (d *DepositData) MarshalJSON() ([]byte, error)
- func (d *DepositData) MarshalSSZ() ([]byte, error)
- func (d *DepositData) MarshalSSZTo(buf []byte) (dst []byte, err error)
- func (d *DepositData) MarshalYAML() ([]byte, error)
- func (d *DepositData) SizeSSZ() (size int)
- func (d *DepositData) String() string
- func (d *DepositData) UnmarshalJSON(input []byte) error
- func (d *DepositData) UnmarshalSSZ(buf []byte) error
- func (d *DepositData) UnmarshalYAML(input []byte) error
- type DepositMessage
- func (d *DepositMessage) GetTree() (*ssz.Node, error)
- func (d *DepositMessage) HashTreeRoot() ([32]byte, error)
- func (d *DepositMessage) HashTreeRootWith(hh ssz.HashWalker) (err error)
- func (d *DepositMessage) MarshalJSON() ([]byte, error)
- func (d *DepositMessage) MarshalSSZ() ([]byte, error)
- func (d *DepositMessage) MarshalSSZTo(buf []byte) (dst []byte, err error)
- func (d *DepositMessage) MarshalYAML() ([]byte, error)
- func (d *DepositMessage) SizeSSZ() (size int)
- func (d *DepositMessage) String() string
- func (d *DepositMessage) UnmarshalJSON(input []byte) error
- func (d *DepositMessage) UnmarshalSSZ(buf []byte) error
- func (d *DepositMessage) UnmarshalYAML(input []byte) error
- type Domain
- type DomainType
- type ETH1Data
- func (e *ETH1Data) GetTree() (*ssz.Node, error)
- func (e *ETH1Data) HashTreeRoot() ([32]byte, error)
- func (e *ETH1Data) HashTreeRootWith(hh ssz.HashWalker) (err error)
- func (e *ETH1Data) MarshalJSON() ([]byte, error)
- func (e *ETH1Data) MarshalSSZ() ([]byte, error)
- func (e *ETH1Data) MarshalSSZTo(buf []byte) (dst []byte, err error)
- func (e *ETH1Data) MarshalYAML() ([]byte, error)
- func (e *ETH1Data) SizeSSZ() (size int)
- func (e *ETH1Data) String() string
- func (e *ETH1Data) UnmarshalJSON(input []byte) error
- func (e *ETH1Data) UnmarshalSSZ(buf []byte) error
- func (e *ETH1Data) UnmarshalYAML(input []byte) error
- type Epoch
- type Fork
- func (f *Fork) GetTree() (*ssz.Node, error)
- func (f *Fork) HashTreeRoot() ([32]byte, error)
- func (f *Fork) HashTreeRootWith(hh ssz.HashWalker) (err error)
- func (f *Fork) MarshalJSON() ([]byte, error)
- func (f *Fork) MarshalSSZ() ([]byte, error)
- func (f *Fork) MarshalSSZTo(buf []byte) (dst []byte, err error)
- func (f *Fork) MarshalYAML() ([]byte, error)
- func (f *Fork) SizeSSZ() (size int)
- func (f *Fork) String() string
- func (f *Fork) UnmarshalJSON(input []byte) error
- func (f *Fork) UnmarshalSSZ(buf []byte) error
- func (f *Fork) UnmarshalYAML(input []byte) error
- type ForkData
- func (f *ForkData) GetTree() (*ssz.Node, error)
- func (f *ForkData) HashTreeRoot() ([32]byte, error)
- func (f *ForkData) HashTreeRootWith(hh ssz.HashWalker) (err error)
- func (f *ForkData) MarshalJSON() ([]byte, error)
- func (f *ForkData) MarshalSSZ() ([]byte, error)
- func (f *ForkData) MarshalSSZTo(buf []byte) (dst []byte, err error)
- func (f *ForkData) MarshalYAML() ([]byte, error)
- func (f *ForkData) SizeSSZ() (size int)
- func (f *ForkData) String() string
- func (f *ForkData) UnmarshalJSON(input []byte) error
- func (f *ForkData) UnmarshalSSZ(buf []byte) error
- func (f *ForkData) UnmarshalYAML(input []byte) error
- type ForkDigest
- type Gwei
- type Hash32
- type IndexedAttestation
- func (i *IndexedAttestation) GetTree() (*ssz.Node, error)
- func (i *IndexedAttestation) HashTreeRoot() ([32]byte, error)
- func (i *IndexedAttestation) HashTreeRootWith(hh ssz.HashWalker) (err error)
- func (i *IndexedAttestation) MarshalJSON() ([]byte, error)
- func (i *IndexedAttestation) MarshalSSZ() ([]byte, error)
- func (i *IndexedAttestation) MarshalSSZTo(buf []byte) (dst []byte, err error)
- func (i *IndexedAttestation) MarshalYAML() ([]byte, error)
- func (i *IndexedAttestation) SizeSSZ() (size int)
- func (i *IndexedAttestation) String() string
- func (i *IndexedAttestation) UnmarshalJSON(input []byte) error
- func (i *IndexedAttestation) UnmarshalSSZ(buf []byte) error
- func (i *IndexedAttestation) UnmarshalYAML(input []byte) error
- type PendingAttestation
- func (p *PendingAttestation) GetTree() (*ssz.Node, error)
- func (p *PendingAttestation) HashTreeRoot() ([32]byte, error)
- func (p *PendingAttestation) HashTreeRootWith(hh ssz.HashWalker) (err error)
- func (p *PendingAttestation) MarshalJSON() ([]byte, error)
- func (p *PendingAttestation) MarshalSSZ() ([]byte, error)
- func (p *PendingAttestation) MarshalSSZTo(buf []byte) (dst []byte, err error)
- func (p *PendingAttestation) MarshalYAML() ([]byte, error)
- func (p *PendingAttestation) SizeSSZ() (size int)
- func (p *PendingAttestation) String() string
- func (p *PendingAttestation) UnmarshalJSON(input []byte) error
- func (p *PendingAttestation) UnmarshalSSZ(buf []byte) error
- func (p *PendingAttestation) UnmarshalYAML(input []byte) error
- type ProposerSlashing
- func (p *ProposerSlashing) GetTree() (*ssz.Node, error)
- func (p *ProposerSlashing) HashTreeRoot() ([32]byte, error)
- func (p *ProposerSlashing) HashTreeRootWith(hh ssz.HashWalker) (err error)
- func (p *ProposerSlashing) MarshalJSON() ([]byte, error)
- func (p *ProposerSlashing) MarshalSSZ() ([]byte, error)
- func (p *ProposerSlashing) MarshalSSZTo(buf []byte) (dst []byte, err error)
- func (p *ProposerSlashing) MarshalYAML() ([]byte, error)
- func (p *ProposerSlashing) SizeSSZ() (size int)
- func (p *ProposerSlashing) String() string
- func (p *ProposerSlashing) UnmarshalJSON(input []byte) error
- func (p *ProposerSlashing) UnmarshalSSZ(buf []byte) error
- func (p *ProposerSlashing) UnmarshalYAML(input []byte) error
- type Root
- type SignedAggregateAndProof
- func (s *SignedAggregateAndProof) GetTree() (*ssz.Node, error)
- func (s *SignedAggregateAndProof) HashTreeRoot() ([32]byte, error)
- func (s *SignedAggregateAndProof) HashTreeRootWith(hh ssz.HashWalker) (err error)
- func (s *SignedAggregateAndProof) MarshalJSON() ([]byte, error)
- func (s *SignedAggregateAndProof) MarshalSSZ() ([]byte, error)
- func (s *SignedAggregateAndProof) MarshalSSZTo(buf []byte) (dst []byte, err error)
- func (s *SignedAggregateAndProof) MarshalYAML() ([]byte, error)
- func (s *SignedAggregateAndProof) SizeSSZ() (size int)
- func (s *SignedAggregateAndProof) String() string
- func (s *SignedAggregateAndProof) UnmarshalJSON(input []byte) error
- func (s *SignedAggregateAndProof) UnmarshalSSZ(buf []byte) error
- func (s *SignedAggregateAndProof) UnmarshalYAML(input []byte) error
- type SignedBeaconBlock
- func (s *SignedBeaconBlock) GetTree() (*ssz.Node, error)
- func (s *SignedBeaconBlock) HashTreeRoot() ([32]byte, error)
- func (s *SignedBeaconBlock) HashTreeRootWith(hh ssz.HashWalker) (err error)
- func (s *SignedBeaconBlock) MarshalJSON() ([]byte, error)
- func (s *SignedBeaconBlock) MarshalSSZ() ([]byte, error)
- func (s *SignedBeaconBlock) MarshalSSZTo(buf []byte) (dst []byte, err error)
- func (s *SignedBeaconBlock) MarshalYAML() ([]byte, error)
- func (s *SignedBeaconBlock) SizeSSZ() (size int)
- func (s *SignedBeaconBlock) String() string
- func (s *SignedBeaconBlock) UnmarshalJSON(input []byte) error
- func (s *SignedBeaconBlock) UnmarshalSSZ(buf []byte) error
- func (s *SignedBeaconBlock) UnmarshalYAML(input []byte) error
- type SignedBeaconBlockHeader
- func (s *SignedBeaconBlockHeader) GetTree() (*ssz.Node, error)
- func (s *SignedBeaconBlockHeader) HashTreeRoot() ([32]byte, error)
- func (s *SignedBeaconBlockHeader) HashTreeRootWith(hh ssz.HashWalker) (err error)
- func (s *SignedBeaconBlockHeader) MarshalJSON() ([]byte, error)
- func (s *SignedBeaconBlockHeader) MarshalSSZ() ([]byte, error)
- func (s *SignedBeaconBlockHeader) MarshalSSZTo(buf []byte) (dst []byte, err error)
- func (s *SignedBeaconBlockHeader) MarshalYAML() ([]byte, error)
- func (s *SignedBeaconBlockHeader) SizeSSZ() (size int)
- func (s *SignedBeaconBlockHeader) String() string
- func (s *SignedBeaconBlockHeader) UnmarshalJSON(input []byte) error
- func (s *SignedBeaconBlockHeader) UnmarshalSSZ(buf []byte) error
- func (s *SignedBeaconBlockHeader) UnmarshalYAML(input []byte) error
- type SignedVoluntaryExit
- func (s *SignedVoluntaryExit) GetTree() (*ssz.Node, error)
- func (s *SignedVoluntaryExit) HashTreeRoot() ([32]byte, error)
- func (s *SignedVoluntaryExit) HashTreeRootWith(hh ssz.HashWalker) (err error)
- func (s *SignedVoluntaryExit) MarshalJSON() ([]byte, error)
- func (s *SignedVoluntaryExit) MarshalSSZ() ([]byte, error)
- func (s *SignedVoluntaryExit) MarshalSSZTo(buf []byte) (dst []byte, err error)
- func (s *SignedVoluntaryExit) MarshalYAML() ([]byte, error)
- func (s *SignedVoluntaryExit) SizeSSZ() (size int)
- func (s *SignedVoluntaryExit) String() string
- func (s *SignedVoluntaryExit) UnmarshalJSON(input []byte) error
- func (s *SignedVoluntaryExit) UnmarshalSSZ(buf []byte) error
- func (s *SignedVoluntaryExit) UnmarshalYAML(input []byte) error
- type SigningData
- func (s *SigningData) GetTree() (*ssz.Node, error)
- func (s *SigningData) HashTreeRoot() ([32]byte, error)
- func (s *SigningData) HashTreeRootWith(hh ssz.HashWalker) (err error)
- func (s *SigningData) MarshalJSON() ([]byte, error)
- func (s *SigningData) MarshalSSZ() ([]byte, error)
- func (s *SigningData) MarshalSSZTo(buf []byte) (dst []byte, err error)
- func (s *SigningData) MarshalYAML() ([]byte, error)
- func (s *SigningData) SizeSSZ() (size int)
- func (s *SigningData) String() string
- func (s *SigningData) UnmarshalJSON(input []byte) error
- func (s *SigningData) UnmarshalSSZ(buf []byte) error
- func (s *SigningData) UnmarshalYAML(input []byte) error
- type Slot
- type Validator
- func (v *Validator) GetTree() (*ssz.Node, error)
- func (v *Validator) HashTreeRoot() ([32]byte, error)
- func (v *Validator) HashTreeRootWith(hh ssz.HashWalker) (err error)
- func (v *Validator) MarshalJSON() ([]byte, error)
- func (v *Validator) MarshalSSZ() ([]byte, error)
- func (v *Validator) MarshalSSZTo(buf []byte) (dst []byte, err error)
- func (v *Validator) MarshalYAML() ([]byte, error)
- func (v *Validator) SizeSSZ() (size int)
- func (v *Validator) String() string
- func (v *Validator) UnmarshalJSON(input []byte) error
- func (v *Validator) UnmarshalSSZ(buf []byte) error
- func (v *Validator) UnmarshalYAML(input []byte) error
- type ValidatorIndex
- type Version
- type VoluntaryExit
- func (v *VoluntaryExit) GetTree() (*ssz.Node, error)
- func (v *VoluntaryExit) HashTreeRoot() ([32]byte, error)
- func (v *VoluntaryExit) HashTreeRootWith(hh ssz.HashWalker) (err error)
- func (v *VoluntaryExit) MarshalJSON() ([]byte, error)
- func (v *VoluntaryExit) MarshalSSZ() ([]byte, error)
- func (v *VoluntaryExit) MarshalSSZTo(buf []byte) (dst []byte, err error)
- func (v *VoluntaryExit) MarshalYAML() ([]byte, error)
- func (v *VoluntaryExit) SizeSSZ() (size int)
- func (v *VoluntaryExit) String() string
- func (v *VoluntaryExit) UnmarshalJSON(input []byte) error
- func (v *VoluntaryExit) UnmarshalSSZ(buf []byte) error
- func (v *VoluntaryExit) UnmarshalYAML(input []byte) error
Constants ¶
const DomainLength = 32
DomainLength is the number of bytes in a domain.
const DomainTypeLength = 4
DomainTypeLength is the number of bytes in a domain type.
const ForkVersionLength = 4
ForkVersionLength is the number of bytes in a fork version.
const GraffitiLength = 32
GraffitiLength is the number of bytes in a block graffiti.
const Hash32Length = 32
Hash32Length is the number of bytes in a 32-byte hash.
const HashLength = 32
HashLength is the number of bytes in a hash.
const PublicKeyLength = 48
PublicKeyLength is the number of bytes in a public key.
const RootLength = 32
RootLength is the number of bytes in a root.
const SignatureLength = 96
SignatureLength is the number of bytes in a signature.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AggregateAndProof ¶
type AggregateAndProof struct { AggregatorIndex ValidatorIndex Aggregate *Attestation SelectionProof BLSSignature `ssz-size:"96"` }
AggregateAndProof is the Ethereum 2 attestation structure.
func (*AggregateAndProof) GetTree ¶
func (a *AggregateAndProof) GetTree() (*ssz.Node, error)
GetTree ssz hashes the AggregateAndProof object
func (*AggregateAndProof) HashTreeRoot ¶
func (a *AggregateAndProof) HashTreeRoot() ([32]byte, error)
HashTreeRoot ssz hashes the AggregateAndProof object
func (*AggregateAndProof) HashTreeRootWith ¶
func (a *AggregateAndProof) HashTreeRootWith(hh ssz.HashWalker) (err error)
HashTreeRootWith ssz hashes the AggregateAndProof object with a hasher
func (*AggregateAndProof) MarshalJSON ¶
func (a *AggregateAndProof) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler.
func (*AggregateAndProof) MarshalSSZ ¶
func (a *AggregateAndProof) MarshalSSZ() ([]byte, error)
MarshalSSZ ssz marshals the AggregateAndProof object
func (*AggregateAndProof) MarshalSSZTo ¶
func (a *AggregateAndProof) MarshalSSZTo(buf []byte) (dst []byte, err error)
MarshalSSZTo ssz marshals the AggregateAndProof object to a target array
func (*AggregateAndProof) MarshalYAML ¶
func (a *AggregateAndProof) MarshalYAML() ([]byte, error)
MarshalYAML implements yaml.Marshaler.
func (*AggregateAndProof) SizeSSZ ¶
func (a *AggregateAndProof) SizeSSZ() (size int)
SizeSSZ returns the ssz encoded size in bytes for the AggregateAndProof object
func (*AggregateAndProof) String ¶
func (a *AggregateAndProof) String() string
String returns a string version of the structure.
func (*AggregateAndProof) UnmarshalJSON ¶
func (a *AggregateAndProof) UnmarshalJSON(input []byte) error
UnmarshalJSON implements json.Unmarshaler.
func (*AggregateAndProof) UnmarshalSSZ ¶
func (a *AggregateAndProof) UnmarshalSSZ(buf []byte) error
UnmarshalSSZ ssz unmarshals the AggregateAndProof object
func (*AggregateAndProof) UnmarshalYAML ¶
func (a *AggregateAndProof) UnmarshalYAML(input []byte) error
UnmarshalYAML implements yaml.Unmarshaler.
type Attestation ¶
type Attestation struct { AggregationBits bitfield.Bitlist `ssz-max:"2048"` Data *AttestationData Signature BLSSignature `ssz-size:"96"` }
Attestation is the Ethereum 2 attestation structure.
func (*Attestation) GetTree ¶
func (a *Attestation) GetTree() (*ssz.Node, error)
GetTree ssz hashes the Attestation object
func (*Attestation) HashTreeRoot ¶
func (a *Attestation) HashTreeRoot() ([32]byte, error)
HashTreeRoot ssz hashes the Attestation object
func (*Attestation) HashTreeRootWith ¶
func (a *Attestation) HashTreeRootWith(hh ssz.HashWalker) (err error)
HashTreeRootWith ssz hashes the Attestation object with a hasher
func (*Attestation) MarshalJSON ¶
func (a *Attestation) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler.
func (*Attestation) MarshalSSZ ¶
func (a *Attestation) MarshalSSZ() ([]byte, error)
MarshalSSZ ssz marshals the Attestation object
func (*Attestation) MarshalSSZTo ¶
func (a *Attestation) MarshalSSZTo(buf []byte) (dst []byte, err error)
MarshalSSZTo ssz marshals the Attestation object to a target array
func (*Attestation) MarshalYAML ¶
func (a *Attestation) MarshalYAML() ([]byte, error)
MarshalYAML implements yaml.Marshaler.
func (*Attestation) SizeSSZ ¶
func (a *Attestation) SizeSSZ() (size int)
SizeSSZ returns the ssz encoded size in bytes for the Attestation object
func (*Attestation) String ¶
func (a *Attestation) String() string
String returns a string version of the structure.
func (*Attestation) UnmarshalJSON ¶
func (a *Attestation) UnmarshalJSON(input []byte) error
UnmarshalJSON implements json.Unmarshaler.
func (*Attestation) UnmarshalSSZ ¶
func (a *Attestation) UnmarshalSSZ(buf []byte) error
UnmarshalSSZ ssz unmarshals the Attestation object
func (*Attestation) UnmarshalYAML ¶
func (a *Attestation) UnmarshalYAML(input []byte) error
UnmarshalYAML implements yaml.Unmarshaler.
type AttestationData ¶
type AttestationData struct { Slot Slot Index CommitteeIndex BeaconBlockRoot Root `ssz-size:"32"` Source *Checkpoint Target *Checkpoint }
AttestationData is the Ethereum 2 specification structure.
func (*AttestationData) GetTree ¶
func (a *AttestationData) GetTree() (*ssz.Node, error)
GetTree ssz hashes the AttestationData object
func (*AttestationData) HashTreeRoot ¶
func (a *AttestationData) HashTreeRoot() ([32]byte, error)
HashTreeRoot ssz hashes the AttestationData object
func (*AttestationData) HashTreeRootWith ¶
func (a *AttestationData) HashTreeRootWith(hh ssz.HashWalker) (err error)
HashTreeRootWith ssz hashes the AttestationData object with a hasher
func (*AttestationData) MarshalJSON ¶
func (a *AttestationData) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler.
func (*AttestationData) MarshalSSZ ¶
func (a *AttestationData) MarshalSSZ() ([]byte, error)
MarshalSSZ ssz marshals the AttestationData object
func (*AttestationData) MarshalSSZTo ¶
func (a *AttestationData) MarshalSSZTo(buf []byte) (dst []byte, err error)
MarshalSSZTo ssz marshals the AttestationData object to a target array
func (*AttestationData) MarshalYAML ¶
func (a *AttestationData) MarshalYAML() ([]byte, error)
MarshalYAML implements yaml.Marshaler.
func (*AttestationData) SizeSSZ ¶
func (a *AttestationData) SizeSSZ() (size int)
SizeSSZ returns the ssz encoded size in bytes for the AttestationData object
func (*AttestationData) String ¶
func (a *AttestationData) String() string
String provids a string representation of the struct.
func (*AttestationData) UnmarshalJSON ¶
func (a *AttestationData) UnmarshalJSON(input []byte) error
UnmarshalJSON implements json.Unmarshaler.
func (*AttestationData) UnmarshalSSZ ¶
func (a *AttestationData) UnmarshalSSZ(buf []byte) error
UnmarshalSSZ ssz unmarshals the AttestationData object
func (*AttestationData) UnmarshalYAML ¶
func (a *AttestationData) UnmarshalYAML(input []byte) error
UnmarshalYAML implements yaml.Unmarshaler.
type AttesterSlashing ¶
type AttesterSlashing struct { Attestation1 *IndexedAttestation Attestation2 *IndexedAttestation }
AttesterSlashing provides information about an attester slashing.
func (*AttesterSlashing) GetTree ¶
func (a *AttesterSlashing) GetTree() (*ssz.Node, error)
GetTree ssz hashes the AttesterSlashing object
func (*AttesterSlashing) HashTreeRoot ¶
func (a *AttesterSlashing) HashTreeRoot() ([32]byte, error)
HashTreeRoot ssz hashes the AttesterSlashing object
func (*AttesterSlashing) HashTreeRootWith ¶
func (a *AttesterSlashing) HashTreeRootWith(hh ssz.HashWalker) (err error)
HashTreeRootWith ssz hashes the AttesterSlashing object with a hasher
func (*AttesterSlashing) MarshalJSON ¶
func (a *AttesterSlashing) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler.
func (*AttesterSlashing) MarshalSSZ ¶
func (a *AttesterSlashing) MarshalSSZ() ([]byte, error)
MarshalSSZ ssz marshals the AttesterSlashing object
func (*AttesterSlashing) MarshalSSZTo ¶
func (a *AttesterSlashing) MarshalSSZTo(buf []byte) (dst []byte, err error)
MarshalSSZTo ssz marshals the AttesterSlashing object to a target array
func (*AttesterSlashing) MarshalYAML ¶
func (a *AttesterSlashing) MarshalYAML() ([]byte, error)
MarshalYAML implements yaml.Marshaler.
func (*AttesterSlashing) SizeSSZ ¶
func (a *AttesterSlashing) SizeSSZ() (size int)
SizeSSZ returns the ssz encoded size in bytes for the AttesterSlashing object
func (*AttesterSlashing) String ¶
func (a *AttesterSlashing) String() string
func (*AttesterSlashing) UnmarshalJSON ¶
func (a *AttesterSlashing) UnmarshalJSON(input []byte) error
UnmarshalJSON implements json.Unmarshaler.
func (*AttesterSlashing) UnmarshalSSZ ¶
func (a *AttesterSlashing) UnmarshalSSZ(buf []byte) error
UnmarshalSSZ ssz unmarshals the AttesterSlashing object
func (*AttesterSlashing) UnmarshalYAML ¶
func (a *AttesterSlashing) UnmarshalYAML(input []byte) error
UnmarshalYAML implements yaml.Unmarshaler.
type BLSPubKey ¶
type BLSPubKey [48]byte
BLSPubKey is a BLS12-381 public key.
func (BLSPubKey) IsInfinity ¶
IsInfinity returns true if the public key is infinity.
func (BLSPubKey) MarshalJSON ¶
MarshalJSON implements json.Marshaler.
func (BLSPubKey) MarshalYAML ¶
MarshalYAML implements yaml.Marshaler.
func (*BLSPubKey) UnmarshalJSON ¶
UnmarshalJSON implements json.Unmarshaler.
func (*BLSPubKey) UnmarshalYAML ¶
UnmarshalYAML implements yaml.Unmarshaler.
type BLSSignature ¶
type BLSSignature [96]byte
BLSSignature is a BLS12-381 signature.
func (BLSSignature) Format ¶
func (s BLSSignature) Format(state fmt.State, v rune)
Format formats the signature.
func (BLSSignature) IsInfinity ¶
func (s BLSSignature) IsInfinity() bool
IsInfinity returns true if the signature is infinity.
func (BLSSignature) IsZero ¶
func (s BLSSignature) IsZero() bool
IsZero returns true if the signature is zero.
func (BLSSignature) MarshalJSON ¶
func (s BLSSignature) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler.
func (BLSSignature) MarshalYAML ¶
func (s BLSSignature) MarshalYAML() ([]byte, error)
MarshalYAML implements yaml.Marshaler.
func (BLSSignature) String ¶
func (s BLSSignature) String() string
String returns a string version of the structure.
func (*BLSSignature) UnmarshalJSON ¶
func (s *BLSSignature) UnmarshalJSON(input []byte) error
UnmarshalJSON implements json.Unmarshaler.
func (*BLSSignature) UnmarshalYAML ¶
func (s *BLSSignature) UnmarshalYAML(input []byte) error
UnmarshalYAML implements yaml.Unmarshaler.
type BeaconBlock ¶
type BeaconBlock struct { Slot Slot ProposerIndex ValidatorIndex ParentRoot Root `ssz-size:"32"` StateRoot Root `ssz-size:"32"` Body *BeaconBlockBody }
BeaconBlock represents a beacon block.
func (*BeaconBlock) GetTree ¶
func (b *BeaconBlock) GetTree() (*ssz.Node, error)
GetTree ssz hashes the BeaconBlock object
func (*BeaconBlock) HashTreeRoot ¶
func (b *BeaconBlock) HashTreeRoot() ([32]byte, error)
HashTreeRoot ssz hashes the BeaconBlock object
func (*BeaconBlock) HashTreeRootWith ¶
func (b *BeaconBlock) HashTreeRootWith(hh ssz.HashWalker) (err error)
HashTreeRootWith ssz hashes the BeaconBlock object with a hasher
func (*BeaconBlock) MarshalJSON ¶
func (b *BeaconBlock) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler.
func (*BeaconBlock) MarshalSSZ ¶
func (b *BeaconBlock) MarshalSSZ() ([]byte, error)
MarshalSSZ ssz marshals the BeaconBlock object
func (*BeaconBlock) MarshalSSZTo ¶
func (b *BeaconBlock) MarshalSSZTo(buf []byte) (dst []byte, err error)
MarshalSSZTo ssz marshals the BeaconBlock object to a target array
func (*BeaconBlock) MarshalYAML ¶
func (b *BeaconBlock) MarshalYAML() ([]byte, error)
MarshalYAML implements yaml.Marshaler.
func (*BeaconBlock) SizeSSZ ¶
func (b *BeaconBlock) SizeSSZ() (size int)
SizeSSZ returns the ssz encoded size in bytes for the BeaconBlock object
func (*BeaconBlock) String ¶
func (b *BeaconBlock) String() string
String returns a string version of the structure.
func (*BeaconBlock) UnmarshalJSON ¶
func (b *BeaconBlock) UnmarshalJSON(input []byte) error
UnmarshalJSON implements json.Unmarshaler.
func (*BeaconBlock) UnmarshalSSZ ¶
func (b *BeaconBlock) UnmarshalSSZ(buf []byte) error
UnmarshalSSZ ssz unmarshals the BeaconBlock object
func (*BeaconBlock) UnmarshalYAML ¶
func (b *BeaconBlock) UnmarshalYAML(input []byte) error
UnmarshalYAML implements yaml.Unmarshaler.
type BeaconBlockBody ¶
type BeaconBlockBody struct { RANDAOReveal BLSSignature `ssz-size:"96"` ETH1Data *ETH1Data Graffiti [32]byte `ssz-size:"32"` ProposerSlashings []*ProposerSlashing `ssz-max:"16"` AttesterSlashings []*AttesterSlashing `ssz-max:"2"` Attestations []*Attestation `ssz-max:"128"` Deposits []*Deposit `ssz-max:"16"` VoluntaryExits []*SignedVoluntaryExit `ssz-max:"16"` }
BeaconBlockBody represents the body of a beacon block.
func (*BeaconBlockBody) GetTree ¶
func (b *BeaconBlockBody) GetTree() (*ssz.Node, error)
GetTree ssz hashes the BeaconBlockBody object
func (*BeaconBlockBody) HashTreeRoot ¶
func (b *BeaconBlockBody) HashTreeRoot() ([32]byte, error)
HashTreeRoot ssz hashes the BeaconBlockBody object
func (*BeaconBlockBody) HashTreeRootWith ¶
func (b *BeaconBlockBody) HashTreeRootWith(hh ssz.HashWalker) (err error)
HashTreeRootWith ssz hashes the BeaconBlockBody object with a hasher
func (*BeaconBlockBody) MarshalJSON ¶
func (b *BeaconBlockBody) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler.
func (*BeaconBlockBody) MarshalSSZ ¶
func (b *BeaconBlockBody) MarshalSSZ() ([]byte, error)
MarshalSSZ ssz marshals the BeaconBlockBody object
func (*BeaconBlockBody) MarshalSSZTo ¶
func (b *BeaconBlockBody) MarshalSSZTo(buf []byte) (dst []byte, err error)
MarshalSSZTo ssz marshals the BeaconBlockBody object to a target array
func (*BeaconBlockBody) MarshalYAML ¶
func (b *BeaconBlockBody) MarshalYAML() ([]byte, error)
MarshalYAML implements yaml.Marshaler.
func (*BeaconBlockBody) SizeSSZ ¶
func (b *BeaconBlockBody) SizeSSZ() (size int)
SizeSSZ returns the ssz encoded size in bytes for the BeaconBlockBody object
func (*BeaconBlockBody) String ¶
func (b *BeaconBlockBody) String() string
String returns a string version of the structure.
func (*BeaconBlockBody) UnmarshalJSON ¶
func (b *BeaconBlockBody) UnmarshalJSON(input []byte) error
UnmarshalJSON implements json.Unmarshaler.
func (*BeaconBlockBody) UnmarshalSSZ ¶
func (b *BeaconBlockBody) UnmarshalSSZ(buf []byte) error
UnmarshalSSZ ssz unmarshals the BeaconBlockBody object
func (*BeaconBlockBody) UnmarshalYAML ¶
func (b *BeaconBlockBody) UnmarshalYAML(input []byte) error
UnmarshalYAML implements yaml.Unmarshaler.
type BeaconBlockHeader ¶
type BeaconBlockHeader struct { Slot Slot ProposerIndex ValidatorIndex ParentRoot Root `ssz-size:"32"` StateRoot Root `ssz-size:"32"` BodyRoot Root `ssz-size:"32"` }
BeaconBlockHeader represents the header of a beacon block without its content.
func (*BeaconBlockHeader) GetTree ¶
func (b *BeaconBlockHeader) GetTree() (*ssz.Node, error)
GetTree ssz hashes the BeaconBlockHeader object
func (*BeaconBlockHeader) HashTreeRoot ¶
func (b *BeaconBlockHeader) HashTreeRoot() ([32]byte, error)
HashTreeRoot ssz hashes the BeaconBlockHeader object
func (*BeaconBlockHeader) HashTreeRootWith ¶
func (b *BeaconBlockHeader) HashTreeRootWith(hh ssz.HashWalker) (err error)
HashTreeRootWith ssz hashes the BeaconBlockHeader object with a hasher
func (*BeaconBlockHeader) MarshalJSON ¶
func (b *BeaconBlockHeader) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler.
func (*BeaconBlockHeader) MarshalSSZ ¶
func (b *BeaconBlockHeader) MarshalSSZ() ([]byte, error)
MarshalSSZ ssz marshals the BeaconBlockHeader object
func (*BeaconBlockHeader) MarshalSSZTo ¶
func (b *BeaconBlockHeader) MarshalSSZTo(buf []byte) (dst []byte, err error)
MarshalSSZTo ssz marshals the BeaconBlockHeader object to a target array
func (*BeaconBlockHeader) MarshalYAML ¶
func (b *BeaconBlockHeader) MarshalYAML() ([]byte, error)
MarshalYAML implements yaml.Marshaler.
func (*BeaconBlockHeader) SizeSSZ ¶
func (b *BeaconBlockHeader) SizeSSZ() (size int)
SizeSSZ returns the ssz encoded size in bytes for the BeaconBlockHeader object
func (*BeaconBlockHeader) String ¶
func (b *BeaconBlockHeader) String() string
String returns a string representation of the struct.
func (*BeaconBlockHeader) UnmarshalJSON ¶
func (b *BeaconBlockHeader) UnmarshalJSON(input []byte) error
UnmarshalJSON implements json.Unmarshaler.
func (*BeaconBlockHeader) UnmarshalSSZ ¶
func (b *BeaconBlockHeader) UnmarshalSSZ(buf []byte) error
UnmarshalSSZ ssz unmarshals the BeaconBlockHeader object
func (*BeaconBlockHeader) UnmarshalYAML ¶
func (b *BeaconBlockHeader) UnmarshalYAML(input []byte) error
UnmarshalYAML implements yaml.Unmarshaler.
type BeaconState ¶
type BeaconState struct { GenesisTime uint64 GenesisValidatorsRoot Root `ssz-size:"32"` Slot Slot Fork *Fork LatestBlockHeader *BeaconBlockHeader BlockRoots []Root `ssz-size:"8192,32"` StateRoots []Root `ssz-size:"8192,32"` HistoricalRoots []Root `ssz-max:"16777216" ssz-size:"?,32"` ETH1Data *ETH1Data ETH1DataVotes []*ETH1Data `ssz-max:"2048"` ETH1DepositIndex uint64 Validators []*Validator `ssz-max:"1099511627776"` Balances []Gwei `ssz-max:"1099511627776"` RANDAOMixes []Root `ssz-size:"65536,32"` Slashings []Gwei `ssz-size:"8192"` PreviousEpochAttestations []*PendingAttestation `ssz-max:"4096"` CurrentEpochAttestations []*PendingAttestation `ssz-max:"4096"` JustificationBits bitfield.Bitvector4 `ssz-size:"1"` PreviousJustifiedCheckpoint *Checkpoint CurrentJustifiedCheckpoint *Checkpoint FinalizedCheckpoint *Checkpoint }
BeaconState represents a beacon state.
func (*BeaconState) GetTree ¶
func (b *BeaconState) GetTree() (*ssz.Node, error)
GetTree ssz hashes the BeaconState object
func (*BeaconState) HashTreeRoot ¶
func (b *BeaconState) HashTreeRoot() ([32]byte, error)
HashTreeRoot ssz hashes the BeaconState object
func (*BeaconState) HashTreeRootWith ¶
func (b *BeaconState) HashTreeRootWith(hh ssz.HashWalker) (err error)
HashTreeRootWith ssz hashes the BeaconState object with a hasher
func (*BeaconState) MarshalJSON ¶
func (s *BeaconState) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler.
func (*BeaconState) MarshalSSZ ¶
func (b *BeaconState) MarshalSSZ() ([]byte, error)
MarshalSSZ ssz marshals the BeaconState object
func (*BeaconState) MarshalSSZTo ¶
func (b *BeaconState) MarshalSSZTo(buf []byte) (dst []byte, err error)
MarshalSSZTo ssz marshals the BeaconState object to a target array
func (*BeaconState) MarshalYAML ¶
func (s *BeaconState) MarshalYAML() ([]byte, error)
MarshalYAML implements yaml.Marshaler.
func (*BeaconState) SizeSSZ ¶
func (b *BeaconState) SizeSSZ() (size int)
SizeSSZ returns the ssz encoded size in bytes for the BeaconState object
func (*BeaconState) String ¶
func (s *BeaconState) String() string
String returns a string version of the structure.
func (*BeaconState) UnmarshalJSON ¶
func (s *BeaconState) UnmarshalJSON(input []byte) error
UnmarshalJSON implements json.Unmarshaler.
func (*BeaconState) UnmarshalSSZ ¶
func (b *BeaconState) UnmarshalSSZ(buf []byte) error
UnmarshalSSZ ssz unmarshals the BeaconState object
func (*BeaconState) UnmarshalYAML ¶
func (s *BeaconState) UnmarshalYAML(input []byte) error
UnmarshalYAML implements yaml.Unmarshaler.
type Checkpoint ¶
Checkpoint provides information about a checkpoint.
func (*Checkpoint) GetTree ¶
func (c *Checkpoint) GetTree() (*ssz.Node, error)
GetTree ssz hashes the Checkpoint object
func (*Checkpoint) HashTreeRoot ¶
func (c *Checkpoint) HashTreeRoot() ([32]byte, error)
HashTreeRoot ssz hashes the Checkpoint object
func (*Checkpoint) HashTreeRootWith ¶
func (c *Checkpoint) HashTreeRootWith(hh ssz.HashWalker) (err error)
HashTreeRootWith ssz hashes the Checkpoint object with a hasher
func (*Checkpoint) MarshalJSON ¶
func (c *Checkpoint) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler.
func (*Checkpoint) MarshalSSZ ¶
func (c *Checkpoint) MarshalSSZ() ([]byte, error)
MarshalSSZ ssz marshals the Checkpoint object
func (*Checkpoint) MarshalSSZTo ¶
func (c *Checkpoint) MarshalSSZTo(buf []byte) (dst []byte, err error)
MarshalSSZTo ssz marshals the Checkpoint object to a target array
func (*Checkpoint) MarshalYAML ¶
func (c *Checkpoint) MarshalYAML() ([]byte, error)
MarshalYAML implements yaml.Marshaler.
func (*Checkpoint) SizeSSZ ¶
func (c *Checkpoint) SizeSSZ() (size int)
SizeSSZ returns the ssz encoded size in bytes for the Checkpoint object
func (*Checkpoint) String ¶
func (c *Checkpoint) String() string
String returns a string version of the structure.
func (*Checkpoint) UnmarshalJSON ¶
func (c *Checkpoint) UnmarshalJSON(input []byte) error
UnmarshalJSON implements json.Unmarshaler.
func (*Checkpoint) UnmarshalSSZ ¶
func (c *Checkpoint) UnmarshalSSZ(buf []byte) error
UnmarshalSSZ ssz unmarshals the Checkpoint object
func (*Checkpoint) UnmarshalYAML ¶
func (c *Checkpoint) UnmarshalYAML(input []byte) error
UnmarshalYAML implements yaml.Unmarshaler.
type Deposit ¶
type Deposit struct { Proof [][]byte `ssz-size:"33,32"` Data *DepositData }
Deposit provides information about a deposit.
func (*Deposit) HashTreeRoot ¶
HashTreeRoot ssz hashes the Deposit object
func (*Deposit) HashTreeRootWith ¶
func (d *Deposit) HashTreeRootWith(hh ssz.HashWalker) (err error)
HashTreeRootWith ssz hashes the Deposit object with a hasher
func (*Deposit) MarshalJSON ¶
MarshalJSON implements json.Marshaler.
func (*Deposit) MarshalSSZ ¶
MarshalSSZ ssz marshals the Deposit object
func (*Deposit) MarshalSSZTo ¶
MarshalSSZTo ssz marshals the Deposit object to a target array
func (*Deposit) MarshalYAML ¶
MarshalYAML implements yaml.Marshaler.
func (*Deposit) UnmarshalJSON ¶
UnmarshalJSON implements json.Unmarshaler.
func (*Deposit) UnmarshalSSZ ¶
UnmarshalSSZ ssz unmarshals the Deposit object
func (*Deposit) UnmarshalYAML ¶
UnmarshalYAML implements yaml.Unmarshaler.
type DepositData ¶
type DepositData struct { PublicKey BLSPubKey `ssz-size:"48"` WithdrawalCredentials []byte `ssz-size:"32"` Amount Gwei Signature BLSSignature `ssz-size:"96"` }
DepositData provides information about a deposit made on Ethereum 1.
func (*DepositData) GetTree ¶
func (d *DepositData) GetTree() (*ssz.Node, error)
GetTree ssz hashes the DepositData object
func (*DepositData) HashTreeRoot ¶
func (d *DepositData) HashTreeRoot() ([32]byte, error)
HashTreeRoot ssz hashes the DepositData object
func (*DepositData) HashTreeRootWith ¶
func (d *DepositData) HashTreeRootWith(hh ssz.HashWalker) (err error)
HashTreeRootWith ssz hashes the DepositData object with a hasher
func (*DepositData) MarshalJSON ¶
func (d *DepositData) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler.
func (*DepositData) MarshalSSZ ¶
func (d *DepositData) MarshalSSZ() ([]byte, error)
MarshalSSZ ssz marshals the DepositData object
func (*DepositData) MarshalSSZTo ¶
func (d *DepositData) MarshalSSZTo(buf []byte) (dst []byte, err error)
MarshalSSZTo ssz marshals the DepositData object to a target array
func (*DepositData) MarshalYAML ¶
func (d *DepositData) MarshalYAML() ([]byte, error)
MarshalYAML implements yaml.Marshaler.
func (*DepositData) SizeSSZ ¶
func (d *DepositData) SizeSSZ() (size int)
SizeSSZ returns the ssz encoded size in bytes for the DepositData object
func (*DepositData) String ¶
func (d *DepositData) String() string
String returns a string version of the structure.
func (*DepositData) UnmarshalJSON ¶
func (d *DepositData) UnmarshalJSON(input []byte) error
UnmarshalJSON implements json.Unmarshaler.
func (*DepositData) UnmarshalSSZ ¶
func (d *DepositData) UnmarshalSSZ(buf []byte) error
UnmarshalSSZ ssz unmarshals the DepositData object
func (*DepositData) UnmarshalYAML ¶
func (d *DepositData) UnmarshalYAML(input []byte) error
UnmarshalYAML implements yaml.Unmarshaler.
type DepositMessage ¶
type DepositMessage struct { PublicKey BLSPubKey `ssz-size:"48"` WithdrawalCredentials []byte `ssz-size:"32"` Amount Gwei }
DepositMessage provides information about a deposit made on Ethereum 1.
func (*DepositMessage) GetTree ¶
func (d *DepositMessage) GetTree() (*ssz.Node, error)
GetTree ssz hashes the DepositMessage object
func (*DepositMessage) HashTreeRoot ¶
func (d *DepositMessage) HashTreeRoot() ([32]byte, error)
HashTreeRoot ssz hashes the DepositMessage object
func (*DepositMessage) HashTreeRootWith ¶
func (d *DepositMessage) HashTreeRootWith(hh ssz.HashWalker) (err error)
HashTreeRootWith ssz hashes the DepositMessage object with a hasher
func (*DepositMessage) MarshalJSON ¶
func (d *DepositMessage) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler.
func (*DepositMessage) MarshalSSZ ¶
func (d *DepositMessage) MarshalSSZ() ([]byte, error)
MarshalSSZ ssz marshals the DepositMessage object
func (*DepositMessage) MarshalSSZTo ¶
func (d *DepositMessage) MarshalSSZTo(buf []byte) (dst []byte, err error)
MarshalSSZTo ssz marshals the DepositMessage object to a target array
func (*DepositMessage) MarshalYAML ¶
func (d *DepositMessage) MarshalYAML() ([]byte, error)
MarshalYAML implements yaml.Marshaler.
func (*DepositMessage) SizeSSZ ¶
func (d *DepositMessage) SizeSSZ() (size int)
SizeSSZ returns the ssz encoded size in bytes for the DepositMessage object
func (*DepositMessage) String ¶
func (d *DepositMessage) String() string
String returns a string version of the structure.
func (*DepositMessage) UnmarshalJSON ¶
func (d *DepositMessage) UnmarshalJSON(input []byte) error
UnmarshalJSON implements json.Unmarshaler.
func (*DepositMessage) UnmarshalSSZ ¶
func (d *DepositMessage) UnmarshalSSZ(buf []byte) error
UnmarshalSSZ ssz unmarshals the DepositMessage object
func (*DepositMessage) UnmarshalYAML ¶
func (d *DepositMessage) UnmarshalYAML(input []byte) error
UnmarshalYAML implements yaml.Unmarshaler.
type ETH1Data ¶
type ETH1Data struct { DepositRoot Root `ssz-size:"32"` DepositCount uint64 BlockHash []byte `ssz-size:"32"` }
ETH1Data provides information about the state of Ethereum 1 as viewed by the Ethereum 2 chain.
func (*ETH1Data) HashTreeRoot ¶
HashTreeRoot ssz hashes the ETH1Data object
func (*ETH1Data) HashTreeRootWith ¶
func (e *ETH1Data) HashTreeRootWith(hh ssz.HashWalker) (err error)
HashTreeRootWith ssz hashes the ETH1Data object with a hasher
func (*ETH1Data) MarshalJSON ¶
MarshalJSON implements json.Marshaler.
func (*ETH1Data) MarshalSSZ ¶
MarshalSSZ ssz marshals the ETH1Data object
func (*ETH1Data) MarshalSSZTo ¶
MarshalSSZTo ssz marshals the ETH1Data object to a target array
func (*ETH1Data) MarshalYAML ¶
MarshalYAML implements yaml.Marshaler.
func (*ETH1Data) UnmarshalJSON ¶
UnmarshalJSON implements json.Unmarshaler.
func (*ETH1Data) UnmarshalSSZ ¶
UnmarshalSSZ ssz unmarshals the ETH1Data object
func (*ETH1Data) UnmarshalYAML ¶
UnmarshalYAML implements yaml.Unmarshaler.
type Fork ¶
type Fork struct { // Previous version is the previous fork version. PreviousVersion Version `ssz-size:"4"` // Current version is the current fork version. CurrentVersion Version `ssz-size:"4"` // Epoch is the epoch at which the current fork version took effect. Epoch Epoch }
Fork provides information about a fork.
func (*Fork) HashTreeRoot ¶
HashTreeRoot ssz hashes the Fork object
func (*Fork) HashTreeRootWith ¶
func (f *Fork) HashTreeRootWith(hh ssz.HashWalker) (err error)
HashTreeRootWith ssz hashes the Fork object with a hasher
func (*Fork) MarshalJSON ¶
MarshalJSON implements json.Marshaler.
func (*Fork) MarshalSSZ ¶
MarshalSSZ ssz marshals the Fork object
func (*Fork) MarshalSSZTo ¶
MarshalSSZTo ssz marshals the Fork object to a target array
func (*Fork) MarshalYAML ¶
MarshalYAML implements yaml.Marshaler.
func (*Fork) UnmarshalJSON ¶
UnmarshalJSON implements json.Unmarshaler.
func (*Fork) UnmarshalSSZ ¶
UnmarshalSSZ ssz unmarshals the Fork object
func (*Fork) UnmarshalYAML ¶
UnmarshalYAML implements yaml.Unmarshaler.
type ForkData ¶
type ForkData struct { // Current version is the current fork version. CurrentVersion Version `ssz-size:"4"` // GenesisValidatorsRoot is the hash tree root of the validators at genesis. GenesisValidatorsRoot Root `ssz-size:"32"` }
ForkData provides data about a fork.
func (*ForkData) HashTreeRoot ¶
HashTreeRoot ssz hashes the ForkData object
func (*ForkData) HashTreeRootWith ¶
func (f *ForkData) HashTreeRootWith(hh ssz.HashWalker) (err error)
HashTreeRootWith ssz hashes the ForkData object with a hasher
func (*ForkData) MarshalJSON ¶
MarshalJSON implements json.Marshaler.
func (*ForkData) MarshalSSZ ¶
MarshalSSZ ssz marshals the ForkData object
func (*ForkData) MarshalSSZTo ¶
MarshalSSZTo ssz marshals the ForkData object to a target array
func (*ForkData) MarshalYAML ¶
MarshalYAML implements yaml.Marshaler.
func (*ForkData) UnmarshalJSON ¶
UnmarshalJSON implements json.Unmarshaler.
func (*ForkData) UnmarshalSSZ ¶
UnmarshalSSZ ssz unmarshals the ForkData object
func (*ForkData) UnmarshalYAML ¶
UnmarshalYAML implements yaml.Unmarshaler.
type Gwei ¶
type Gwei uint64
Gwei is an amount in Gwei.
func (Gwei) MarshalJSON ¶
MarshalJSON implements json.Marshaler.
func (Gwei) MarshalYAML ¶
MarshalYAML implements yaml.Marshaler.
func (*Gwei) UnmarshalJSON ¶
UnmarshalJSON implements json.Unmarshaler.
func (*Gwei) UnmarshalYAML ¶
UnmarshalYAML implements yaml.Unmarshaler.
type Hash32 ¶
type Hash32 [32]byte
Hash32 is a 32-byte hash.
func (Hash32) MarshalJSON ¶
MarshalJSON implements json.Marshaler.
func (Hash32) MarshalYAML ¶
MarshalYAML implements yaml.Marshaler.
func (*Hash32) UnmarshalJSON ¶
UnmarshalJSON implements json.Unmarshaler.
func (*Hash32) UnmarshalYAML ¶
UnmarshalYAML implements yaml.Unmarshaler.
type IndexedAttestation ¶
type IndexedAttestation struct { // Currently using primitives as sszgen does not handle []ValidatorIndex AttestingIndices []uint64 `ssz-max:"2048"` Data *AttestationData Signature BLSSignature `ssz-size:"96"` }
IndexedAttestation provides a signed attestation with a list of attesting indices.
func (*IndexedAttestation) GetTree ¶
func (i *IndexedAttestation) GetTree() (*ssz.Node, error)
GetTree ssz hashes the IndexedAttestation object
func (*IndexedAttestation) HashTreeRoot ¶
func (i *IndexedAttestation) HashTreeRoot() ([32]byte, error)
HashTreeRoot ssz hashes the IndexedAttestation object
func (*IndexedAttestation) HashTreeRootWith ¶
func (i *IndexedAttestation) HashTreeRootWith(hh ssz.HashWalker) (err error)
HashTreeRootWith ssz hashes the IndexedAttestation object with a hasher
func (*IndexedAttestation) MarshalJSON ¶
func (i *IndexedAttestation) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler.
func (*IndexedAttestation) MarshalSSZ ¶
func (i *IndexedAttestation) MarshalSSZ() ([]byte, error)
MarshalSSZ ssz marshals the IndexedAttestation object
func (*IndexedAttestation) MarshalSSZTo ¶
func (i *IndexedAttestation) MarshalSSZTo(buf []byte) (dst []byte, err error)
MarshalSSZTo ssz marshals the IndexedAttestation object to a target array
func (*IndexedAttestation) MarshalYAML ¶
func (i *IndexedAttestation) MarshalYAML() ([]byte, error)
MarshalYAML implements yaml.Marshaler.
func (*IndexedAttestation) SizeSSZ ¶
func (i *IndexedAttestation) SizeSSZ() (size int)
SizeSSZ returns the ssz encoded size in bytes for the IndexedAttestation object
func (*IndexedAttestation) String ¶
func (i *IndexedAttestation) String() string
String returns a string version of the structure.
func (*IndexedAttestation) UnmarshalJSON ¶
func (i *IndexedAttestation) UnmarshalJSON(input []byte) error
UnmarshalJSON implements json.Unmarshaler.
func (*IndexedAttestation) UnmarshalSSZ ¶
func (i *IndexedAttestation) UnmarshalSSZ(buf []byte) error
UnmarshalSSZ ssz unmarshals the IndexedAttestation object
func (*IndexedAttestation) UnmarshalYAML ¶
func (i *IndexedAttestation) UnmarshalYAML(input []byte) error
UnmarshalYAML implements yaml.Unmarshaler.
type PendingAttestation ¶
type PendingAttestation struct { AggregationBits bitfield.Bitlist `ssz-max:"2048"` Data *AttestationData InclusionDelay Slot ProposerIndex ValidatorIndex }
PendingAttestation is the Ethereum 2 pending attestation structure.
func (*PendingAttestation) GetTree ¶
func (p *PendingAttestation) GetTree() (*ssz.Node, error)
GetTree ssz hashes the PendingAttestation object
func (*PendingAttestation) HashTreeRoot ¶
func (p *PendingAttestation) HashTreeRoot() ([32]byte, error)
HashTreeRoot ssz hashes the PendingAttestation object
func (*PendingAttestation) HashTreeRootWith ¶
func (p *PendingAttestation) HashTreeRootWith(hh ssz.HashWalker) (err error)
HashTreeRootWith ssz hashes the PendingAttestation object with a hasher
func (*PendingAttestation) MarshalJSON ¶
func (p *PendingAttestation) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler.
func (*PendingAttestation) MarshalSSZ ¶
func (p *PendingAttestation) MarshalSSZ() ([]byte, error)
MarshalSSZ ssz marshals the PendingAttestation object
func (*PendingAttestation) MarshalSSZTo ¶
func (p *PendingAttestation) MarshalSSZTo(buf []byte) (dst []byte, err error)
MarshalSSZTo ssz marshals the PendingAttestation object to a target array
func (*PendingAttestation) MarshalYAML ¶
func (p *PendingAttestation) MarshalYAML() ([]byte, error)
MarshalYAML implements yaml.Marshaler.
func (*PendingAttestation) SizeSSZ ¶
func (p *PendingAttestation) SizeSSZ() (size int)
SizeSSZ returns the ssz encoded size in bytes for the PendingAttestation object
func (*PendingAttestation) String ¶
func (p *PendingAttestation) String() string
String returns a string version of the structure.
func (*PendingAttestation) UnmarshalJSON ¶
func (p *PendingAttestation) UnmarshalJSON(input []byte) error
UnmarshalJSON implements json.Unmarshaler.
func (*PendingAttestation) UnmarshalSSZ ¶
func (p *PendingAttestation) UnmarshalSSZ(buf []byte) error
UnmarshalSSZ ssz unmarshals the PendingAttestation object
func (*PendingAttestation) UnmarshalYAML ¶
func (p *PendingAttestation) UnmarshalYAML(input []byte) error
UnmarshalYAML implements yaml.Unmarshaler.
type ProposerSlashing ¶
type ProposerSlashing struct { SignedHeader1 *SignedBeaconBlockHeader SignedHeader2 *SignedBeaconBlockHeader }
ProposerSlashing provides information about a proposer slashing.
func (*ProposerSlashing) GetTree ¶
func (p *ProposerSlashing) GetTree() (*ssz.Node, error)
GetTree ssz hashes the ProposerSlashing object
func (*ProposerSlashing) HashTreeRoot ¶
func (p *ProposerSlashing) HashTreeRoot() ([32]byte, error)
HashTreeRoot ssz hashes the ProposerSlashing object
func (*ProposerSlashing) HashTreeRootWith ¶
func (p *ProposerSlashing) HashTreeRootWith(hh ssz.HashWalker) (err error)
HashTreeRootWith ssz hashes the ProposerSlashing object with a hasher
func (*ProposerSlashing) MarshalJSON ¶
func (p *ProposerSlashing) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler.
func (*ProposerSlashing) MarshalSSZ ¶
func (p *ProposerSlashing) MarshalSSZ() ([]byte, error)
MarshalSSZ ssz marshals the ProposerSlashing object
func (*ProposerSlashing) MarshalSSZTo ¶
func (p *ProposerSlashing) MarshalSSZTo(buf []byte) (dst []byte, err error)
MarshalSSZTo ssz marshals the ProposerSlashing object to a target array
func (*ProposerSlashing) MarshalYAML ¶
func (p *ProposerSlashing) MarshalYAML() ([]byte, error)
MarshalYAML implements yaml.Marshaler.
func (*ProposerSlashing) SizeSSZ ¶
func (p *ProposerSlashing) SizeSSZ() (size int)
SizeSSZ returns the ssz encoded size in bytes for the ProposerSlashing object
func (*ProposerSlashing) String ¶
func (p *ProposerSlashing) String() string
String returns a string version of the structure.
func (*ProposerSlashing) UnmarshalJSON ¶
func (p *ProposerSlashing) UnmarshalJSON(input []byte) error
UnmarshalJSON implements json.Unmarshaler.
func (*ProposerSlashing) UnmarshalSSZ ¶
func (p *ProposerSlashing) UnmarshalSSZ(buf []byte) error
UnmarshalSSZ ssz unmarshals the ProposerSlashing object
func (*ProposerSlashing) UnmarshalYAML ¶
func (p *ProposerSlashing) UnmarshalYAML(input []byte) error
UnmarshalYAML implements yaml.Unmarshaler.
type Root ¶
type Root [32]byte
Root is a merkle root.
func (Root) MarshalJSON ¶
MarshalJSON implements json.Marshaler.
func (Root) MarshalYAML ¶
MarshalYAML implements yaml.Marshaler.
func (*Root) UnmarshalJSON ¶
UnmarshalJSON implements json.Unmarshaler.
func (*Root) UnmarshalYAML ¶
UnmarshalYAML implements yaml.Unmarshaler.
type SignedAggregateAndProof ¶
type SignedAggregateAndProof struct { Message *AggregateAndProof Signature BLSSignature `ssz-size:"96"` }
SignedAggregateAndProof provides information about a signed aggregate and proof.
func (*SignedAggregateAndProof) GetTree ¶
func (s *SignedAggregateAndProof) GetTree() (*ssz.Node, error)
GetTree ssz hashes the SignedAggregateAndProof object
func (*SignedAggregateAndProof) HashTreeRoot ¶
func (s *SignedAggregateAndProof) HashTreeRoot() ([32]byte, error)
HashTreeRoot ssz hashes the SignedAggregateAndProof object
func (*SignedAggregateAndProof) HashTreeRootWith ¶
func (s *SignedAggregateAndProof) HashTreeRootWith(hh ssz.HashWalker) (err error)
HashTreeRootWith ssz hashes the SignedAggregateAndProof object with a hasher
func (*SignedAggregateAndProof) MarshalJSON ¶
func (s *SignedAggregateAndProof) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler.
func (*SignedAggregateAndProof) MarshalSSZ ¶
func (s *SignedAggregateAndProof) MarshalSSZ() ([]byte, error)
MarshalSSZ ssz marshals the SignedAggregateAndProof object
func (*SignedAggregateAndProof) MarshalSSZTo ¶
func (s *SignedAggregateAndProof) MarshalSSZTo(buf []byte) (dst []byte, err error)
MarshalSSZTo ssz marshals the SignedAggregateAndProof object to a target array
func (*SignedAggregateAndProof) MarshalYAML ¶
func (s *SignedAggregateAndProof) MarshalYAML() ([]byte, error)
MarshalYAML implements yaml.Marshaler.
func (*SignedAggregateAndProof) SizeSSZ ¶
func (s *SignedAggregateAndProof) SizeSSZ() (size int)
SizeSSZ returns the ssz encoded size in bytes for the SignedAggregateAndProof object
func (*SignedAggregateAndProof) String ¶
func (s *SignedAggregateAndProof) String() string
String returns a string version of the structure.
func (*SignedAggregateAndProof) UnmarshalJSON ¶
func (s *SignedAggregateAndProof) UnmarshalJSON(input []byte) error
UnmarshalJSON implements json.Unmarshaler.
func (*SignedAggregateAndProof) UnmarshalSSZ ¶
func (s *SignedAggregateAndProof) UnmarshalSSZ(buf []byte) error
UnmarshalSSZ ssz unmarshals the SignedAggregateAndProof object
func (*SignedAggregateAndProof) UnmarshalYAML ¶
func (s *SignedAggregateAndProof) UnmarshalYAML(input []byte) error
UnmarshalYAML implements yaml.Unmarshaler.
type SignedBeaconBlock ¶
type SignedBeaconBlock struct { Message *BeaconBlock Signature BLSSignature `ssz-size:"96"` }
SignedBeaconBlock is a signed beacon block.
func (*SignedBeaconBlock) GetTree ¶
func (s *SignedBeaconBlock) GetTree() (*ssz.Node, error)
GetTree ssz hashes the SignedBeaconBlock object
func (*SignedBeaconBlock) HashTreeRoot ¶
func (s *SignedBeaconBlock) HashTreeRoot() ([32]byte, error)
HashTreeRoot ssz hashes the SignedBeaconBlock object
func (*SignedBeaconBlock) HashTreeRootWith ¶
func (s *SignedBeaconBlock) HashTreeRootWith(hh ssz.HashWalker) (err error)
HashTreeRootWith ssz hashes the SignedBeaconBlock object with a hasher
func (*SignedBeaconBlock) MarshalJSON ¶
func (s *SignedBeaconBlock) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler.
func (*SignedBeaconBlock) MarshalSSZ ¶
func (s *SignedBeaconBlock) MarshalSSZ() ([]byte, error)
MarshalSSZ ssz marshals the SignedBeaconBlock object
func (*SignedBeaconBlock) MarshalSSZTo ¶
func (s *SignedBeaconBlock) MarshalSSZTo(buf []byte) (dst []byte, err error)
MarshalSSZTo ssz marshals the SignedBeaconBlock object to a target array
func (*SignedBeaconBlock) MarshalYAML ¶
func (s *SignedBeaconBlock) MarshalYAML() ([]byte, error)
MarshalYAML implements yaml.Marshaler.
func (*SignedBeaconBlock) SizeSSZ ¶
func (s *SignedBeaconBlock) SizeSSZ() (size int)
SizeSSZ returns the ssz encoded size in bytes for the SignedBeaconBlock object
func (*SignedBeaconBlock) String ¶
func (s *SignedBeaconBlock) String() string
String returns a string version of the structure.
func (*SignedBeaconBlock) UnmarshalJSON ¶
func (s *SignedBeaconBlock) UnmarshalJSON(input []byte) error
UnmarshalJSON implements json.Unmarshaler.
func (*SignedBeaconBlock) UnmarshalSSZ ¶
func (s *SignedBeaconBlock) UnmarshalSSZ(buf []byte) error
UnmarshalSSZ ssz unmarshals the SignedBeaconBlock object
func (*SignedBeaconBlock) UnmarshalYAML ¶
func (s *SignedBeaconBlock) UnmarshalYAML(input []byte) error
UnmarshalYAML implements yaml.Unmarshaler.
type SignedBeaconBlockHeader ¶
type SignedBeaconBlockHeader struct { Message *BeaconBlockHeader Signature BLSSignature `ssz-size:"96"` }
SignedBeaconBlockHeader provides information about a signed beacon block header.
func (*SignedBeaconBlockHeader) GetTree ¶
func (s *SignedBeaconBlockHeader) GetTree() (*ssz.Node, error)
GetTree ssz hashes the SignedBeaconBlockHeader object
func (*SignedBeaconBlockHeader) HashTreeRoot ¶
func (s *SignedBeaconBlockHeader) HashTreeRoot() ([32]byte, error)
HashTreeRoot ssz hashes the SignedBeaconBlockHeader object
func (*SignedBeaconBlockHeader) HashTreeRootWith ¶
func (s *SignedBeaconBlockHeader) HashTreeRootWith(hh ssz.HashWalker) (err error)
HashTreeRootWith ssz hashes the SignedBeaconBlockHeader object with a hasher
func (*SignedBeaconBlockHeader) MarshalJSON ¶
func (s *SignedBeaconBlockHeader) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler.
func (*SignedBeaconBlockHeader) MarshalSSZ ¶
func (s *SignedBeaconBlockHeader) MarshalSSZ() ([]byte, error)
MarshalSSZ ssz marshals the SignedBeaconBlockHeader object
func (*SignedBeaconBlockHeader) MarshalSSZTo ¶
func (s *SignedBeaconBlockHeader) MarshalSSZTo(buf []byte) (dst []byte, err error)
MarshalSSZTo ssz marshals the SignedBeaconBlockHeader object to a target array
func (*SignedBeaconBlockHeader) MarshalYAML ¶
func (s *SignedBeaconBlockHeader) MarshalYAML() ([]byte, error)
MarshalYAML implements yaml.Marshaler.
func (*SignedBeaconBlockHeader) SizeSSZ ¶
func (s *SignedBeaconBlockHeader) SizeSSZ() (size int)
SizeSSZ returns the ssz encoded size in bytes for the SignedBeaconBlockHeader object
func (*SignedBeaconBlockHeader) String ¶
func (s *SignedBeaconBlockHeader) String() string
String returns a string version of the structure.
func (*SignedBeaconBlockHeader) UnmarshalJSON ¶
func (s *SignedBeaconBlockHeader) UnmarshalJSON(input []byte) error
UnmarshalJSON implements json.Unmarshaler.
func (*SignedBeaconBlockHeader) UnmarshalSSZ ¶
func (s *SignedBeaconBlockHeader) UnmarshalSSZ(buf []byte) error
UnmarshalSSZ ssz unmarshals the SignedBeaconBlockHeader object
func (*SignedBeaconBlockHeader) UnmarshalYAML ¶
func (s *SignedBeaconBlockHeader) UnmarshalYAML(input []byte) error
UnmarshalYAML implements yaml.Unmarshaler.
type SignedVoluntaryExit ¶
type SignedVoluntaryExit struct { Message *VoluntaryExit Signature BLSSignature `ssz-size:"96"` }
SignedVoluntaryExit provides information about a signed voluntary exit.
func (*SignedVoluntaryExit) GetTree ¶
func (s *SignedVoluntaryExit) GetTree() (*ssz.Node, error)
GetTree ssz hashes the SignedVoluntaryExit object
func (*SignedVoluntaryExit) HashTreeRoot ¶
func (s *SignedVoluntaryExit) HashTreeRoot() ([32]byte, error)
HashTreeRoot ssz hashes the SignedVoluntaryExit object
func (*SignedVoluntaryExit) HashTreeRootWith ¶
func (s *SignedVoluntaryExit) HashTreeRootWith(hh ssz.HashWalker) (err error)
HashTreeRootWith ssz hashes the SignedVoluntaryExit object with a hasher
func (*SignedVoluntaryExit) MarshalJSON ¶
func (s *SignedVoluntaryExit) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler.
func (*SignedVoluntaryExit) MarshalSSZ ¶
func (s *SignedVoluntaryExit) MarshalSSZ() ([]byte, error)
MarshalSSZ ssz marshals the SignedVoluntaryExit object
func (*SignedVoluntaryExit) MarshalSSZTo ¶
func (s *SignedVoluntaryExit) MarshalSSZTo(buf []byte) (dst []byte, err error)
MarshalSSZTo ssz marshals the SignedVoluntaryExit object to a target array
func (*SignedVoluntaryExit) MarshalYAML ¶
func (s *SignedVoluntaryExit) MarshalYAML() ([]byte, error)
MarshalYAML implements yaml.Marshaler.
func (*SignedVoluntaryExit) SizeSSZ ¶
func (s *SignedVoluntaryExit) SizeSSZ() (size int)
SizeSSZ returns the ssz encoded size in bytes for the SignedVoluntaryExit object
func (*SignedVoluntaryExit) String ¶
func (s *SignedVoluntaryExit) String() string
String returns a string version of the structure.
func (*SignedVoluntaryExit) UnmarshalJSON ¶
func (s *SignedVoluntaryExit) UnmarshalJSON(input []byte) error
UnmarshalJSON implements json.Unmarshaler.
func (*SignedVoluntaryExit) UnmarshalSSZ ¶
func (s *SignedVoluntaryExit) UnmarshalSSZ(buf []byte) error
UnmarshalSSZ ssz unmarshals the SignedVoluntaryExit object
func (*SignedVoluntaryExit) UnmarshalYAML ¶
func (s *SignedVoluntaryExit) UnmarshalYAML(input []byte) error
UnmarshalYAML implements yaml.Unmarshaler.
type SigningData ¶
SigningData provides information about signing data.
func (*SigningData) GetTree ¶
func (s *SigningData) GetTree() (*ssz.Node, error)
GetTree ssz hashes the SigningData object
func (*SigningData) HashTreeRoot ¶
func (s *SigningData) HashTreeRoot() ([32]byte, error)
HashTreeRoot ssz hashes the SigningData object
func (*SigningData) HashTreeRootWith ¶
func (s *SigningData) HashTreeRootWith(hh ssz.HashWalker) (err error)
HashTreeRootWith ssz hashes the SigningData object with a hasher
func (*SigningData) MarshalJSON ¶
func (s *SigningData) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler.
func (*SigningData) MarshalSSZ ¶
func (s *SigningData) MarshalSSZ() ([]byte, error)
MarshalSSZ ssz marshals the SigningData object
func (*SigningData) MarshalSSZTo ¶
func (s *SigningData) MarshalSSZTo(buf []byte) (dst []byte, err error)
MarshalSSZTo ssz marshals the SigningData object to a target array
func (*SigningData) MarshalYAML ¶
func (s *SigningData) MarshalYAML() ([]byte, error)
MarshalYAML implements yaml.Marshaler.
func (*SigningData) SizeSSZ ¶
func (s *SigningData) SizeSSZ() (size int)
SizeSSZ returns the ssz encoded size in bytes for the SigningData object
func (*SigningData) String ¶
func (s *SigningData) String() string
String returns a string version of the structure.
func (*SigningData) UnmarshalJSON ¶
func (s *SigningData) UnmarshalJSON(input []byte) error
UnmarshalJSON implements json.Unmarshaler.
func (*SigningData) UnmarshalSSZ ¶
func (s *SigningData) UnmarshalSSZ(buf []byte) error
UnmarshalSSZ ssz unmarshals the SigningData object
func (*SigningData) UnmarshalYAML ¶
func (s *SigningData) UnmarshalYAML(input []byte) error
UnmarshalYAML implements yaml.Unmarshaler.
type Slot ¶
type Slot uint64
Slot is a slot number.
func (Slot) MarshalJSON ¶
MarshalJSON implements json.Marshaler.
func (*Slot) UnmarshalJSON ¶
UnmarshalJSON implements json.Unmarshaler.
type Validator ¶
type Validator struct { PublicKey BLSPubKey `ssz-size:"48"` WithdrawalCredentials []byte `ssz-size:"32"` EffectiveBalance Gwei Slashed bool ActivationEligibilityEpoch Epoch ActivationEpoch Epoch ExitEpoch Epoch WithdrawableEpoch Epoch }
Validator is the Ethereum 2 validator structure.
func (*Validator) HashTreeRoot ¶
HashTreeRoot ssz hashes the Validator object
func (*Validator) HashTreeRootWith ¶
func (v *Validator) HashTreeRootWith(hh ssz.HashWalker) (err error)
HashTreeRootWith ssz hashes the Validator object with a hasher
func (*Validator) MarshalJSON ¶
MarshalJSON implements json.Marshaler.
func (*Validator) MarshalSSZ ¶
MarshalSSZ ssz marshals the Validator object
func (*Validator) MarshalSSZTo ¶
MarshalSSZTo ssz marshals the Validator object to a target array
func (*Validator) MarshalYAML ¶
MarshalYAML implements yaml.Marshaler.
func (*Validator) UnmarshalJSON ¶
UnmarshalJSON implements json.Unmarshaler.
func (*Validator) UnmarshalSSZ ¶
UnmarshalSSZ ssz unmarshals the Validator object
func (*Validator) UnmarshalYAML ¶
UnmarshalYAML implements yaml.Unmarshaler.
type ValidatorIndex ¶
type ValidatorIndex uint64
ValidatorIndex is a validator registry index.
func (ValidatorIndex) MarshalJSON ¶
func (v ValidatorIndex) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler.
func (*ValidatorIndex) UnmarshalJSON ¶
func (v *ValidatorIndex) UnmarshalJSON(input []byte) error
UnmarshalJSON implements json.Unmarshaler.
type VoluntaryExit ¶
type VoluntaryExit struct { Epoch Epoch ValidatorIndex ValidatorIndex }
VoluntaryExit provides information about a voluntary exit.
func (*VoluntaryExit) GetTree ¶
func (v *VoluntaryExit) GetTree() (*ssz.Node, error)
GetTree ssz hashes the VoluntaryExit object
func (*VoluntaryExit) HashTreeRoot ¶
func (v *VoluntaryExit) HashTreeRoot() ([32]byte, error)
HashTreeRoot ssz hashes the VoluntaryExit object
func (*VoluntaryExit) HashTreeRootWith ¶
func (v *VoluntaryExit) HashTreeRootWith(hh ssz.HashWalker) (err error)
HashTreeRootWith ssz hashes the VoluntaryExit object with a hasher
func (*VoluntaryExit) MarshalJSON ¶
func (v *VoluntaryExit) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler.
func (*VoluntaryExit) MarshalSSZ ¶
func (v *VoluntaryExit) MarshalSSZ() ([]byte, error)
MarshalSSZ ssz marshals the VoluntaryExit object
func (*VoluntaryExit) MarshalSSZTo ¶
func (v *VoluntaryExit) MarshalSSZTo(buf []byte) (dst []byte, err error)
MarshalSSZTo ssz marshals the VoluntaryExit object to a target array
func (*VoluntaryExit) MarshalYAML ¶
func (v *VoluntaryExit) MarshalYAML() ([]byte, error)
MarshalYAML implements yaml.Marshaler.
func (*VoluntaryExit) SizeSSZ ¶
func (v *VoluntaryExit) SizeSSZ() (size int)
SizeSSZ returns the ssz encoded size in bytes for the VoluntaryExit object
func (*VoluntaryExit) String ¶
func (v *VoluntaryExit) String() string
String returns a string version of the structure.
func (*VoluntaryExit) UnmarshalJSON ¶
func (v *VoluntaryExit) UnmarshalJSON(input []byte) error
UnmarshalJSON implements json.Unmarshaler.
func (*VoluntaryExit) UnmarshalSSZ ¶
func (v *VoluntaryExit) UnmarshalSSZ(buf []byte) error
UnmarshalSSZ ssz unmarshals the VoluntaryExit object
func (*VoluntaryExit) UnmarshalYAML ¶
func (v *VoluntaryExit) UnmarshalYAML(input []byte) error
UnmarshalYAML implements yaml.Unmarshaler.
Source Files ¶
- aggregateandproof.go
- aggregateandproof_ssz.go
- attestation.go
- attestation_ssz.go
- attestationdata.go
- attestationdata_ssz.go
- attesterslashing.go
- attesterslashing_ssz.go
- beaconblock.go
- beaconblock_ssz.go
- beaconblockbody.go
- beaconblockbody_ssz.go
- beaconblockheader.go
- beaconblockheader_ssz.go
- beaconstate.go
- beaconstate_ssz.go
- blspubkey.go
- blssignature.go
- checkpoint.go
- checkpoint_ssz.go
- consts.go
- deposit.go
- deposit_ssz.go
- depositdata.go
- depositdata_ssz.go
- depositmessage.go
- depositmessage_ssz.go
- eth1data.go
- eth1data_ssz.go
- fork.go
- fork_ssz.go
- forkdata.go
- forkdata_ssz.go
- generate.go
- gwei.go
- hash32.go
- indexedattestation.go
- indexedattestation_ssz.go
- pendingattestation.go
- pendingattestation_ssz.go
- proposerslashing.go
- proposerslashing_ssz.go
- root.go
- signedaggregateandproof.go
- signedaggregateandproof_ssz.go
- signedbeaconblock.go
- signedbeaconblock_ssz.go
- signedbeaconblockheader.go
- signedbeaconblockheader_ssz.go
- signedvoluntaryexit.go
- signedvoluntaryexit_ssz.go
- signingdata.go
- signingdata_ssz.go
- slot.go
- types.go
- validator.go
- validator_ssz.go
- validatorindex.go
- voluntaryexit.go
- voluntaryexit_ssz.go