Documentation
¶
Overview ¶
Code generated by dynamic-ssz. DO NOT EDIT. Hash: 644fb75c754b313886218e7d4dc21df998164a2a6a7039508dd99fd1c8c41a7e Version: v1.3.1 (https://github.com/pk910/dynamic-ssz)
Code generated by dynamic-ssz. DO NOT EDIT. Hash: ae7a813264024184b3b42c55d1c86ef45eec802cb9ec18719ca8d1b4280056b0 Version: v1.3.1 (https://github.com/pk910/dynamic-ssz)
Code generated by dynamic-ssz. DO NOT EDIT. Hash: 747eb73785fe5a545c33b5dea3d97e85140d6c1f07a4f37067620c5a6cb3bac0 Version: v1.3.1 (https://github.com/pk910/dynamic-ssz)
Code generated by dynamic-ssz. DO NOT EDIT. Hash: 7e7361bc88559d2d1e3ff29786b24f736d0ab5e26a4536dc4ceb70375af47f5a Version: v1.3.1 (https://github.com/pk910/dynamic-ssz)
Code generated by dynamic-ssz. DO NOT EDIT. Hash: c1e450eab906686ce72b305184768aea7fe893028b97edab9f1d487bf033317a Version: v1.3.1 (https://github.com/pk910/dynamic-ssz)
Code generated by dynamic-ssz. DO NOT EDIT. Hash: e4132a10ab3a3fe0536526d863fc5e1c2ece882a29e0bb3f1c61e1117d4c1d14 Version: v1.3.1 (https://github.com/pk910/dynamic-ssz)
Code generated by dynamic-ssz. DO NOT EDIT. Hash: bf550eadd052e8e0abc7c52ac6d42b1915a0e6d6a2ba6df4092e921063d47296 Version: v1.3.1 (https://github.com/pk910/dynamic-ssz)
Code generated by dynamic-ssz. DO NOT EDIT. Hash: 2765b03ea4ed554199d35002fd296d93f5321218f17239c91be5d86aec0accdb Version: v1.3.1 (https://github.com/pk910/dynamic-ssz)
Code generated by dynamic-ssz. DO NOT EDIT. Hash: dff6ab46869c0b3a9d9551a917e7dc3d6c5722fa3a010acf946c23b271079109 Version: v1.3.1 (https://github.com/pk910/dynamic-ssz)
Code generated by dynamic-ssz. DO NOT EDIT. Hash: c0b259a71901b9a0f8e67e18c271bcf42a484e1e328a737150f7c5a658741936 Version: v1.3.1 (https://github.com/pk910/dynamic-ssz)
Code generated by dynamic-ssz. DO NOT EDIT. Hash: 1c6806da88ebe1550603785cdf22df0b24787bcc2ee09cdc1a7402519525925b Version: v1.3.1 (https://github.com/pk910/dynamic-ssz)
Code generated by dynamic-ssz. DO NOT EDIT. Hash: 5332b534e70c5b501befeebf298dbdb730d54c1458084b52512249cf00271c61 Version: v1.3.1 (https://github.com/pk910/dynamic-ssz)
Code generated by dynamic-ssz. DO NOT EDIT. Hash: 5986a01be9fd7a475da7f3c9a5ab16e72013bb07c8670a66ab9ff942a120e272 Version: v1.3.1 (https://github.com/pk910/dynamic-ssz)
Code generated by dynamic-ssz. DO NOT EDIT. Hash: 448263198e8b42dc25a807c3381bc0a47c1d8bc1d72e265ddc8f875cbf5c799e Version: v1.3.1 (https://github.com/pk910/dynamic-ssz)
Code generated by dynamic-ssz. DO NOT EDIT. Hash: 91a137896656e955b63ed32573a031ecbf0a5ede37f83d5ca47b16da17e01c92 Version: v1.3.1 (https://github.com/pk910/dynamic-ssz)
Code generated by dynamic-ssz. DO NOT EDIT. Hash: 09e2e7f3778c41a5bf51dd6685b2e50f7f68299001de3b2192879c9b72c51e86 Version: v1.3.1 (https://github.com/pk910/dynamic-ssz)
Code generated by dynamic-ssz. DO NOT EDIT. Hash: af3d6d5be46f4ed34cf73a035e38e9d4379aee1cb879742867741a5a3f0675bb Version: v1.3.1 (https://github.com/pk910/dynamic-ssz)
Code generated by dynamic-ssz. DO NOT EDIT. Hash: 763b26a6e62855875fc40a22b1cc722163ac1f6daa5202d57d907e76f5eb17be Version: v1.3.1 (https://github.com/pk910/dynamic-ssz)
Code generated by dynamic-ssz. DO NOT EDIT. Hash: 8f22cc01c713510632bcddea5090aa94c22d33cc6745a4759b089cd5af00c282 Version: v1.3.1 (https://github.com/pk910/dynamic-ssz)
Code generated by dynamic-ssz. DO NOT EDIT. Hash: b979db12916b8727ffdf22256b982e81057d5c9bf891035cac6dafb436eedf3f Version: v1.3.1 (https://github.com/pk910/dynamic-ssz)
Code generated by dynamic-ssz. DO NOT EDIT. Hash: c41265af228ecb5aab443e67ea3129ecd00a29aa255de52f37afef01eeed1e2d Version: v1.3.1 (https://github.com/pk910/dynamic-ssz)
Code generated by dynamic-ssz. DO NOT EDIT. Hash: 25abf5bc749a30cd7ae17651abea1406fe4548c1ad01ed9a79e4ec7cdf2c1f54 Version: v1.3.1 (https://github.com/pk910/dynamic-ssz)
Code generated by dynamic-ssz. DO NOT EDIT. Hash: 5fabd6b51daa7d31381383d155ef7297ebd49cc5bf9b29d73f5e288c33246373 Version: v1.3.1 (https://github.com/pk910/dynamic-ssz)
Code generated by dynamic-ssz. DO NOT EDIT. Hash: c355aada9b4a31b484f9bdfd7c87b5caa2ea40358e53a88752b8f6e0ee5cfccd Version: v1.3.1 (https://github.com/pk910/dynamic-ssz)
Code generated by dynamic-ssz. DO NOT EDIT. Hash: 203bf11bfe36fcb09b82289f7d91017d96fbb2ac8d773ca495610766126716b2 Version: v1.3.1 (https://github.com/pk910/dynamic-ssz)
Index ¶
- Constants
- type AggregateAndProof
- func (t *AggregateAndProof) HashTreeRoot() (root [32]byte, err error)
- func (t *AggregateAndProof) HashTreeRootWith(hh sszutils.HashWalker) error
- func (a *AggregateAndProof) MarshalJSON() ([]byte, error)
- func (t *AggregateAndProof) MarshalSSZ() ([]byte, error)
- func (t *AggregateAndProof) MarshalSSZTo(buf []byte) (dst []byte, err error)
- func (a *AggregateAndProof) MarshalYAML() ([]byte, error)
- func (t *AggregateAndProof) SizeSSZ() (size int)
- func (a *AggregateAndProof) String() string
- func (a *AggregateAndProof) UnmarshalJSON(input []byte) error
- func (t *AggregateAndProof) UnmarshalSSZ(buf []byte) (err error)
- func (a *AggregateAndProof) UnmarshalYAML(input []byte) error
- type Attestation
- func (t *Attestation) HashTreeRoot() (root [32]byte, err error)
- func (t *Attestation) HashTreeRootWith(hh sszutils.HashWalker) error
- func (a *Attestation) MarshalJSON() ([]byte, error)
- func (t *Attestation) MarshalSSZ() ([]byte, error)
- func (t *Attestation) MarshalSSZTo(buf []byte) (dst []byte, err error)
- func (a *Attestation) MarshalYAML() ([]byte, error)
- func (t *Attestation) SizeSSZ() (size int)
- func (a *Attestation) String() string
- func (a *Attestation) UnmarshalJSON(input []byte) error
- func (t *Attestation) UnmarshalSSZ(buf []byte) (err error)
- func (a *Attestation) UnmarshalYAML(input []byte) error
- type AttestationData
- func (t *AttestationData) HashTreeRoot() (root [32]byte, err error)
- func (t *AttestationData) HashTreeRootWith(hh sszutils.HashWalker) error
- func (a *AttestationData) MarshalJSON() ([]byte, error)
- func (t *AttestationData) MarshalSSZ() ([]byte, error)
- func (t *AttestationData) MarshalSSZTo(buf []byte) (dst []byte, err error)
- func (a *AttestationData) MarshalYAML() ([]byte, error)
- func (t *AttestationData) SizeSSZ() (size int)
- func (a *AttestationData) String() string
- func (a *AttestationData) UnmarshalJSON(input []byte) error
- func (t *AttestationData) UnmarshalSSZ(buf []byte) (err error)
- func (a *AttestationData) UnmarshalYAML(input []byte) error
- type AttesterSlashing
- func (t *AttesterSlashing) HashTreeRoot() (root [32]byte, err error)
- func (t *AttesterSlashing) HashTreeRootWith(hh sszutils.HashWalker) error
- func (a *AttesterSlashing) MarshalJSON() ([]byte, error)
- func (t *AttesterSlashing) MarshalSSZ() ([]byte, error)
- func (t *AttesterSlashing) MarshalSSZTo(buf []byte) (dst []byte, err error)
- func (a *AttesterSlashing) MarshalYAML() ([]byte, error)
- func (t *AttesterSlashing) SizeSSZ() (size int)
- func (a *AttesterSlashing) String() string
- func (a *AttesterSlashing) UnmarshalJSON(input []byte) error
- func (t *AttesterSlashing) UnmarshalSSZ(buf []byte) (err 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 (t *BeaconBlock) HashTreeRoot() (root [32]byte, err error)
- func (t *BeaconBlock) HashTreeRootWith(hh sszutils.HashWalker) error
- func (b *BeaconBlock) MarshalJSON() ([]byte, error)
- func (t *BeaconBlock) MarshalSSZ() ([]byte, error)
- func (t *BeaconBlock) MarshalSSZTo(buf []byte) (dst []byte, err error)
- func (b *BeaconBlock) MarshalYAML() ([]byte, error)
- func (t *BeaconBlock) SizeSSZ() (size int)
- func (b *BeaconBlock) String() string
- func (b *BeaconBlock) UnmarshalJSON(input []byte) error
- func (t *BeaconBlock) UnmarshalSSZ(buf []byte) (err error)
- func (b *BeaconBlock) UnmarshalYAML(input []byte) error
- type BeaconBlockBody
- func (t *BeaconBlockBody) HashTreeRoot() (root [32]byte, err error)
- func (t *BeaconBlockBody) HashTreeRootWith(hh sszutils.HashWalker) error
- func (b *BeaconBlockBody) MarshalJSON() ([]byte, error)
- func (t *BeaconBlockBody) MarshalSSZ() ([]byte, error)
- func (t *BeaconBlockBody) MarshalSSZTo(buf []byte) (dst []byte, err error)
- func (b *BeaconBlockBody) MarshalYAML() ([]byte, error)
- func (t *BeaconBlockBody) SizeSSZ() (size int)
- func (b *BeaconBlockBody) String() string
- func (b *BeaconBlockBody) UnmarshalJSON(input []byte) error
- func (t *BeaconBlockBody) UnmarshalSSZ(buf []byte) (err error)
- func (b *BeaconBlockBody) UnmarshalYAML(input []byte) error
- type BeaconBlockHeader
- func (t *BeaconBlockHeader) HashTreeRoot() (root [32]byte, err error)
- func (t *BeaconBlockHeader) HashTreeRootWith(hh sszutils.HashWalker) error
- func (b *BeaconBlockHeader) MarshalJSON() ([]byte, error)
- func (t *BeaconBlockHeader) MarshalSSZ() ([]byte, error)
- func (t *BeaconBlockHeader) MarshalSSZTo(buf []byte) (dst []byte, err error)
- func (b *BeaconBlockHeader) MarshalYAML() ([]byte, error)
- func (t *BeaconBlockHeader) SizeSSZ() (size int)
- func (b *BeaconBlockHeader) String() string
- func (b *BeaconBlockHeader) UnmarshalJSON(input []byte) error
- func (t *BeaconBlockHeader) UnmarshalSSZ(buf []byte) (err error)
- func (b *BeaconBlockHeader) UnmarshalYAML(input []byte) error
- type BeaconState
- func (t *BeaconState) HashTreeRoot() (root [32]byte, err error)
- func (t *BeaconState) HashTreeRootWith(hh sszutils.HashWalker) error
- func (s *BeaconState) MarshalJSON() ([]byte, error)
- func (t *BeaconState) MarshalSSZ() ([]byte, error)
- func (t *BeaconState) MarshalSSZTo(buf []byte) (dst []byte, err error)
- func (s *BeaconState) MarshalYAML() ([]byte, error)
- func (t *BeaconState) SizeSSZ() (size int)
- func (s *BeaconState) String() string
- func (s *BeaconState) UnmarshalJSON(input []byte) error
- func (t *BeaconState) UnmarshalSSZ(buf []byte) (err error)
- func (s *BeaconState) UnmarshalYAML(input []byte) error
- type Checkpoint
- func (t *Checkpoint) HashTreeRoot() (root [32]byte, err error)
- func (t *Checkpoint) HashTreeRootWith(hh sszutils.HashWalker) error
- func (c *Checkpoint) MarshalJSON() ([]byte, error)
- func (t *Checkpoint) MarshalSSZ() ([]byte, error)
- func (t *Checkpoint) MarshalSSZTo(buf []byte) (dst []byte, err error)
- func (c *Checkpoint) MarshalYAML() ([]byte, error)
- func (t *Checkpoint) SizeSSZ() (size int)
- func (c *Checkpoint) String() string
- func (c *Checkpoint) UnmarshalJSON(input []byte) error
- func (t *Checkpoint) UnmarshalSSZ(buf []byte) (err error)
- func (c *Checkpoint) UnmarshalYAML(input []byte) error
- type CommitteeIndex
- type Deposit
- func (t *Deposit) HashTreeRoot() (root [32]byte, err error)
- func (t *Deposit) HashTreeRootWith(hh sszutils.HashWalker) error
- func (d *Deposit) MarshalJSON() ([]byte, error)
- func (t *Deposit) MarshalSSZ() ([]byte, error)
- func (t *Deposit) MarshalSSZTo(buf []byte) (dst []byte, err error)
- func (d *Deposit) MarshalYAML() ([]byte, error)
- func (t *Deposit) SizeSSZ() (size int)
- func (d *Deposit) String() string
- func (d *Deposit) UnmarshalJSON(input []byte) error
- func (t *Deposit) UnmarshalSSZ(buf []byte) (err error)
- func (d *Deposit) UnmarshalYAML(input []byte) error
- type DepositData
- func (t *DepositData) HashTreeRoot() (root [32]byte, err error)
- func (t *DepositData) HashTreeRootWith(hh sszutils.HashWalker) error
- func (d *DepositData) MarshalJSON() ([]byte, error)
- func (t *DepositData) MarshalSSZ() ([]byte, error)
- func (t *DepositData) MarshalSSZTo(buf []byte) (dst []byte, err error)
- func (d *DepositData) MarshalYAML() ([]byte, error)
- func (t *DepositData) SizeSSZ() (size int)
- func (d *DepositData) String() string
- func (d *DepositData) UnmarshalJSON(input []byte) error
- func (t *DepositData) UnmarshalSSZ(buf []byte) (err error)
- func (d *DepositData) UnmarshalYAML(input []byte) error
- type DepositMessage
- func (t *DepositMessage) HashTreeRoot() (root [32]byte, err error)
- func (t *DepositMessage) HashTreeRootWith(hh sszutils.HashWalker) error
- func (d *DepositMessage) MarshalJSON() ([]byte, error)
- func (t *DepositMessage) MarshalSSZ() ([]byte, error)
- func (t *DepositMessage) MarshalSSZTo(buf []byte) (dst []byte, err error)
- func (d *DepositMessage) MarshalYAML() ([]byte, error)
- func (t *DepositMessage) SizeSSZ() (size int)
- func (d *DepositMessage) String() string
- func (d *DepositMessage) UnmarshalJSON(input []byte) error
- func (t *DepositMessage) UnmarshalSSZ(buf []byte) (err error)
- func (d *DepositMessage) UnmarshalYAML(input []byte) error
- type Domain
- type DomainType
- type ETH1Data
- func (t *ETH1Data) HashTreeRoot() (root [32]byte, err error)
- func (t *ETH1Data) HashTreeRootWith(hh sszutils.HashWalker) error
- func (e *ETH1Data) MarshalJSON() ([]byte, error)
- func (t *ETH1Data) MarshalSSZ() ([]byte, error)
- func (t *ETH1Data) MarshalSSZTo(buf []byte) (dst []byte, err error)
- func (e *ETH1Data) MarshalYAML() ([]byte, error)
- func (t *ETH1Data) SizeSSZ() (size int)
- func (e *ETH1Data) String() string
- func (e *ETH1Data) UnmarshalJSON(input []byte) error
- func (t *ETH1Data) UnmarshalSSZ(buf []byte) (err error)
- func (e *ETH1Data) UnmarshalYAML(input []byte) error
- type Epoch
- type Fork
- func (t *Fork) HashTreeRoot() (root [32]byte, err error)
- func (t *Fork) HashTreeRootWith(hh sszutils.HashWalker) error
- func (f *Fork) MarshalJSON() ([]byte, error)
- func (t *Fork) MarshalSSZ() ([]byte, error)
- func (t *Fork) MarshalSSZTo(buf []byte) (dst []byte, err error)
- func (f *Fork) MarshalYAML() ([]byte, error)
- func (t *Fork) SizeSSZ() (size int)
- func (f *Fork) String() string
- func (f *Fork) UnmarshalJSON(input []byte) error
- func (t *Fork) UnmarshalSSZ(buf []byte) (err error)
- func (f *Fork) UnmarshalYAML(input []byte) error
- type ForkData
- func (t *ForkData) HashTreeRoot() (root [32]byte, err error)
- func (t *ForkData) HashTreeRootWith(hh sszutils.HashWalker) error
- func (f *ForkData) MarshalJSON() ([]byte, error)
- func (t *ForkData) MarshalSSZ() ([]byte, error)
- func (t *ForkData) MarshalSSZTo(buf []byte) (dst []byte, err error)
- func (f *ForkData) MarshalYAML() ([]byte, error)
- func (t *ForkData) SizeSSZ() (size int)
- func (f *ForkData) String() string
- func (f *ForkData) UnmarshalJSON(input []byte) error
- func (t *ForkData) UnmarshalSSZ(buf []byte) (err error)
- func (f *ForkData) UnmarshalYAML(input []byte) error
- type ForkDigest
- type Gwei
- type Hash32
- type IndexedAttestation
- func (t *IndexedAttestation) HashTreeRoot() (root [32]byte, err error)
- func (t *IndexedAttestation) HashTreeRootWith(hh sszutils.HashWalker) error
- func (i *IndexedAttestation) MarshalJSON() ([]byte, error)
- func (t *IndexedAttestation) MarshalSSZ() ([]byte, error)
- func (t *IndexedAttestation) MarshalSSZTo(buf []byte) (dst []byte, err error)
- func (i *IndexedAttestation) MarshalYAML() ([]byte, error)
- func (t *IndexedAttestation) SizeSSZ() (size int)
- func (i *IndexedAttestation) String() string
- func (i *IndexedAttestation) UnmarshalJSON(input []byte) error
- func (t *IndexedAttestation) UnmarshalSSZ(buf []byte) (err error)
- func (i *IndexedAttestation) UnmarshalYAML(input []byte) error
- type PendingAttestation
- func (t *PendingAttestation) HashTreeRoot() (root [32]byte, err error)
- func (t *PendingAttestation) HashTreeRootWith(hh sszutils.HashWalker) error
- func (p *PendingAttestation) MarshalJSON() ([]byte, error)
- func (t *PendingAttestation) MarshalSSZ() ([]byte, error)
- func (t *PendingAttestation) MarshalSSZTo(buf []byte) (dst []byte, err error)
- func (p *PendingAttestation) MarshalYAML() ([]byte, error)
- func (t *PendingAttestation) SizeSSZ() (size int)
- func (p *PendingAttestation) String() string
- func (p *PendingAttestation) UnmarshalJSON(input []byte) error
- func (t *PendingAttestation) UnmarshalSSZ(buf []byte) (err error)
- func (p *PendingAttestation) UnmarshalYAML(input []byte) error
- type ProposerSlashing
- func (t *ProposerSlashing) HashTreeRoot() (root [32]byte, err error)
- func (t *ProposerSlashing) HashTreeRootWith(hh sszutils.HashWalker) error
- func (p *ProposerSlashing) MarshalJSON() ([]byte, error)
- func (t *ProposerSlashing) MarshalSSZ() ([]byte, error)
- func (t *ProposerSlashing) MarshalSSZTo(buf []byte) (dst []byte, err error)
- func (p *ProposerSlashing) MarshalYAML() ([]byte, error)
- func (t *ProposerSlashing) SizeSSZ() (size int)
- func (p *ProposerSlashing) String() string
- func (p *ProposerSlashing) UnmarshalJSON(input []byte) error
- func (t *ProposerSlashing) UnmarshalSSZ(buf []byte) (err error)
- func (p *ProposerSlashing) UnmarshalYAML(input []byte) error
- type Root
- type SignedAggregateAndProof
- func (t *SignedAggregateAndProof) HashTreeRoot() (root [32]byte, err error)
- func (t *SignedAggregateAndProof) HashTreeRootWith(hh sszutils.HashWalker) error
- func (s *SignedAggregateAndProof) MarshalJSON() ([]byte, error)
- func (t *SignedAggregateAndProof) MarshalSSZ() ([]byte, error)
- func (t *SignedAggregateAndProof) MarshalSSZTo(buf []byte) (dst []byte, err error)
- func (s *SignedAggregateAndProof) MarshalYAML() ([]byte, error)
- func (t *SignedAggregateAndProof) SizeSSZ() (size int)
- func (s *SignedAggregateAndProof) String() string
- func (s *SignedAggregateAndProof) UnmarshalJSON(input []byte) error
- func (t *SignedAggregateAndProof) UnmarshalSSZ(buf []byte) (err error)
- func (s *SignedAggregateAndProof) UnmarshalYAML(input []byte) error
- type SignedBeaconBlock
- func (t *SignedBeaconBlock) HashTreeRoot() (root [32]byte, err error)
- func (t *SignedBeaconBlock) HashTreeRootWith(hh sszutils.HashWalker) error
- func (s *SignedBeaconBlock) MarshalJSON() ([]byte, error)
- func (t *SignedBeaconBlock) MarshalSSZ() ([]byte, error)
- func (t *SignedBeaconBlock) MarshalSSZTo(buf []byte) (dst []byte, err error)
- func (s *SignedBeaconBlock) MarshalYAML() ([]byte, error)
- func (t *SignedBeaconBlock) SizeSSZ() (size int)
- func (s *SignedBeaconBlock) String() string
- func (s *SignedBeaconBlock) UnmarshalJSON(input []byte) error
- func (t *SignedBeaconBlock) UnmarshalSSZ(buf []byte) (err error)
- func (s *SignedBeaconBlock) UnmarshalYAML(input []byte) error
- type SignedBeaconBlockHeader
- func (t *SignedBeaconBlockHeader) HashTreeRoot() (root [32]byte, err error)
- func (t *SignedBeaconBlockHeader) HashTreeRootWith(hh sszutils.HashWalker) error
- func (s *SignedBeaconBlockHeader) MarshalJSON() ([]byte, error)
- func (t *SignedBeaconBlockHeader) MarshalSSZ() ([]byte, error)
- func (t *SignedBeaconBlockHeader) MarshalSSZTo(buf []byte) (dst []byte, err error)
- func (s *SignedBeaconBlockHeader) MarshalYAML() ([]byte, error)
- func (t *SignedBeaconBlockHeader) SizeSSZ() (size int)
- func (s *SignedBeaconBlockHeader) String() string
- func (s *SignedBeaconBlockHeader) UnmarshalJSON(input []byte) error
- func (t *SignedBeaconBlockHeader) UnmarshalSSZ(buf []byte) (err error)
- func (s *SignedBeaconBlockHeader) UnmarshalYAML(input []byte) error
- type SignedVoluntaryExit
- func (t *SignedVoluntaryExit) HashTreeRoot() (root [32]byte, err error)
- func (t *SignedVoluntaryExit) HashTreeRootWith(hh sszutils.HashWalker) error
- func (s *SignedVoluntaryExit) MarshalJSON() ([]byte, error)
- func (t *SignedVoluntaryExit) MarshalSSZ() ([]byte, error)
- func (t *SignedVoluntaryExit) MarshalSSZTo(buf []byte) (dst []byte, err error)
- func (s *SignedVoluntaryExit) MarshalYAML() ([]byte, error)
- func (t *SignedVoluntaryExit) SizeSSZ() (size int)
- func (s *SignedVoluntaryExit) String() string
- func (s *SignedVoluntaryExit) UnmarshalJSON(input []byte) error
- func (t *SignedVoluntaryExit) UnmarshalSSZ(buf []byte) (err error)
- func (s *SignedVoluntaryExit) UnmarshalYAML(input []byte) error
- type SigningData
- func (t *SigningData) HashTreeRoot() (root [32]byte, err error)
- func (t *SigningData) HashTreeRootWith(hh sszutils.HashWalker) error
- func (s *SigningData) MarshalJSON() ([]byte, error)
- func (t *SigningData) MarshalSSZ() ([]byte, error)
- func (t *SigningData) MarshalSSZTo(buf []byte) (dst []byte, err error)
- func (s *SigningData) MarshalYAML() ([]byte, error)
- func (t *SigningData) SizeSSZ() (size int)
- func (s *SigningData) String() string
- func (s *SigningData) UnmarshalJSON(input []byte) error
- func (t *SigningData) UnmarshalSSZ(buf []byte) (err error)
- func (s *SigningData) UnmarshalYAML(input []byte) error
- type Slot
- type Validator
- func (t *Validator) HashTreeRoot() (root [32]byte, err error)
- func (t *Validator) HashTreeRootWith(hh sszutils.HashWalker) error
- func (v *Validator) MarshalJSON() ([]byte, error)
- func (t *Validator) MarshalSSZ() ([]byte, error)
- func (t *Validator) MarshalSSZTo(buf []byte) (dst []byte, err error)
- func (v *Validator) MarshalYAML() ([]byte, error)
- func (t *Validator) SizeSSZ() (size int)
- func (v *Validator) String() string
- func (v *Validator) UnmarshalJSON(input []byte) error
- func (t *Validator) UnmarshalSSZ(buf []byte) (err error)
- func (v *Validator) UnmarshalYAML(input []byte) error
- type ValidatorIndex
- type Version
- type VoluntaryExit
- func (t *VoluntaryExit) HashTreeRoot() (root [32]byte, err error)
- func (t *VoluntaryExit) HashTreeRootWith(hh sszutils.HashWalker) error
- func (v *VoluntaryExit) MarshalJSON() ([]byte, error)
- func (t *VoluntaryExit) MarshalSSZ() ([]byte, error)
- func (t *VoluntaryExit) MarshalSSZTo(buf []byte) (dst []byte, err error)
- func (v *VoluntaryExit) MarshalYAML() ([]byte, error)
- func (t *VoluntaryExit) SizeSSZ() (size int)
- func (v *VoluntaryExit) String() string
- func (v *VoluntaryExit) UnmarshalJSON(input []byte) error
- func (t *VoluntaryExit) UnmarshalSSZ(buf []byte) (err 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) HashTreeRoot ¶
func (t *AggregateAndProof) HashTreeRoot() (root [32]byte, err error)
HashTreeRoot computes the SSZ hash tree root of the *AggregateAndProof.
func (*AggregateAndProof) HashTreeRootWith ¶
func (t *AggregateAndProof) HashTreeRootWith(hh sszutils.HashWalker) error
HashTreeRootWith computes the SSZ hash tree root of the *AggregateAndProof using the given hash walker.
func (*AggregateAndProof) MarshalJSON ¶
func (a *AggregateAndProof) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler.
func (*AggregateAndProof) MarshalSSZ ¶
func (t *AggregateAndProof) MarshalSSZ() ([]byte, error)
MarshalSSZ marshals the *AggregateAndProof to SSZ-encoded bytes.
func (*AggregateAndProof) MarshalSSZTo ¶
func (t *AggregateAndProof) MarshalSSZTo(buf []byte) (dst []byte, err error)
MarshalSSZTo marshals the *AggregateAndProof to SSZ-encoded bytes, appending to the provided buffer.
func (*AggregateAndProof) MarshalYAML ¶
func (a *AggregateAndProof) MarshalYAML() ([]byte, error)
MarshalYAML implements yaml.Marshaler.
func (*AggregateAndProof) SizeSSZ ¶
func (t *AggregateAndProof) SizeSSZ() (size int)
SizeSSZ returns the SSZ encoded size of the *AggregateAndProof.
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 (t *AggregateAndProof) UnmarshalSSZ(buf []byte) (err error)
UnmarshalSSZ unmarshals the *AggregateAndProof from SSZ-encoded bytes.
func (*AggregateAndProof) UnmarshalYAML ¶
func (a *AggregateAndProof) UnmarshalYAML(input []byte) error
UnmarshalYAML implements yaml.Unmarshaler.
type Attestation ¶
type Attestation struct {
AggregationBits bitfield.Bitlist `dynssz-max:"MAX_VALIDATORS_PER_COMMITTEE" ssz-max:"2048"`
Data *AttestationData
Signature BLSSignature `ssz-size:"96"`
}
Attestation is the Ethereum 2 attestation structure.
func (*Attestation) HashTreeRoot ¶
func (t *Attestation) HashTreeRoot() (root [32]byte, err error)
HashTreeRoot computes the SSZ hash tree root of the *Attestation.
func (*Attestation) HashTreeRootWith ¶
func (t *Attestation) HashTreeRootWith(hh sszutils.HashWalker) error
HashTreeRootWith computes the SSZ hash tree root of the *Attestation using the given hash walker.
func (*Attestation) MarshalJSON ¶
func (a *Attestation) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler.
func (*Attestation) MarshalSSZ ¶
func (t *Attestation) MarshalSSZ() ([]byte, error)
MarshalSSZ marshals the *Attestation to SSZ-encoded bytes.
func (*Attestation) MarshalSSZTo ¶
func (t *Attestation) MarshalSSZTo(buf []byte) (dst []byte, err error)
MarshalSSZTo marshals the *Attestation to SSZ-encoded bytes, appending to the provided buffer.
func (*Attestation) MarshalYAML ¶
func (a *Attestation) MarshalYAML() ([]byte, error)
MarshalYAML implements yaml.Marshaler.
func (*Attestation) SizeSSZ ¶
func (t *Attestation) SizeSSZ() (size int)
SizeSSZ returns the SSZ encoded size of the *Attestation.
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 (t *Attestation) UnmarshalSSZ(buf []byte) (err error)
UnmarshalSSZ unmarshals the *Attestation from SSZ-encoded bytes.
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) HashTreeRoot ¶
func (t *AttestationData) HashTreeRoot() (root [32]byte, err error)
HashTreeRoot computes the SSZ hash tree root of the *AttestationData.
func (*AttestationData) HashTreeRootWith ¶
func (t *AttestationData) HashTreeRootWith(hh sszutils.HashWalker) error
HashTreeRootWith computes the SSZ hash tree root of the *AttestationData using the given hash walker.
func (*AttestationData) MarshalJSON ¶
func (a *AttestationData) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler.
func (*AttestationData) MarshalSSZ ¶
func (t *AttestationData) MarshalSSZ() ([]byte, error)
MarshalSSZ marshals the *AttestationData to SSZ-encoded bytes.
func (*AttestationData) MarshalSSZTo ¶
func (t *AttestationData) MarshalSSZTo(buf []byte) (dst []byte, err error)
MarshalSSZTo marshals the *AttestationData to SSZ-encoded bytes, appending to the provided buffer.
func (*AttestationData) MarshalYAML ¶
func (a *AttestationData) MarshalYAML() ([]byte, error)
MarshalYAML implements yaml.Marshaler.
func (*AttestationData) SizeSSZ ¶
func (t *AttestationData) SizeSSZ() (size int)
SizeSSZ returns the SSZ encoded size of the *AttestationData.
func (*AttestationData) String ¶
func (a *AttestationData) String() string
String provides a string representation of the struct.
func (*AttestationData) UnmarshalJSON ¶
func (a *AttestationData) UnmarshalJSON(input []byte) error
UnmarshalJSON implements json.Unmarshaler.
func (*AttestationData) UnmarshalSSZ ¶
func (t *AttestationData) UnmarshalSSZ(buf []byte) (err error)
UnmarshalSSZ unmarshals the *AttestationData from SSZ-encoded bytes.
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) HashTreeRoot ¶
func (t *AttesterSlashing) HashTreeRoot() (root [32]byte, err error)
HashTreeRoot computes the SSZ hash tree root of the *AttesterSlashing.
func (*AttesterSlashing) HashTreeRootWith ¶
func (t *AttesterSlashing) HashTreeRootWith(hh sszutils.HashWalker) error
HashTreeRootWith computes the SSZ hash tree root of the *AttesterSlashing using the given hash walker.
func (*AttesterSlashing) MarshalJSON ¶
func (a *AttesterSlashing) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler.
func (*AttesterSlashing) MarshalSSZ ¶
func (t *AttesterSlashing) MarshalSSZ() ([]byte, error)
MarshalSSZ marshals the *AttesterSlashing to SSZ-encoded bytes.
func (*AttesterSlashing) MarshalSSZTo ¶
func (t *AttesterSlashing) MarshalSSZTo(buf []byte) (dst []byte, err error)
MarshalSSZTo marshals the *AttesterSlashing to SSZ-encoded bytes, appending to the provided buffer.
func (*AttesterSlashing) MarshalYAML ¶
func (a *AttesterSlashing) MarshalYAML() ([]byte, error)
MarshalYAML implements yaml.Marshaler.
func (*AttesterSlashing) SizeSSZ ¶
func (t *AttesterSlashing) SizeSSZ() (size int)
SizeSSZ returns the SSZ encoded size of the *AttesterSlashing.
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 (t *AttesterSlashing) UnmarshalSSZ(buf []byte) (err error)
UnmarshalSSZ unmarshals the *AttesterSlashing from SSZ-encoded bytes.
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) HashTreeRoot ¶
func (t *BeaconBlock) HashTreeRoot() (root [32]byte, err error)
HashTreeRoot computes the SSZ hash tree root of the *BeaconBlock.
func (*BeaconBlock) HashTreeRootWith ¶
func (t *BeaconBlock) HashTreeRootWith(hh sszutils.HashWalker) error
HashTreeRootWith computes the SSZ hash tree root of the *BeaconBlock using the given hash walker.
func (*BeaconBlock) MarshalJSON ¶
func (b *BeaconBlock) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler.
func (*BeaconBlock) MarshalSSZ ¶
func (t *BeaconBlock) MarshalSSZ() ([]byte, error)
MarshalSSZ marshals the *BeaconBlock to SSZ-encoded bytes.
func (*BeaconBlock) MarshalSSZTo ¶
func (t *BeaconBlock) MarshalSSZTo(buf []byte) (dst []byte, err error)
MarshalSSZTo marshals the *BeaconBlock to SSZ-encoded bytes, appending to the provided buffer.
func (*BeaconBlock) MarshalYAML ¶
func (b *BeaconBlock) MarshalYAML() ([]byte, error)
MarshalYAML implements yaml.Marshaler.
func (*BeaconBlock) SizeSSZ ¶
func (t *BeaconBlock) SizeSSZ() (size int)
SizeSSZ returns the SSZ encoded size of the *BeaconBlock.
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 (t *BeaconBlock) UnmarshalSSZ(buf []byte) (err error)
UnmarshalSSZ unmarshals the *BeaconBlock from SSZ-encoded bytes.
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 `dynssz-max:"MAX_PROPOSER_SLASHINGS" ssz-max:"16"`
AttesterSlashings []*AttesterSlashing `dynssz-max:"MAX_ATTESTER_SLASHINGS" ssz-max:"2"`
Attestations []*Attestation `dynssz-max:"MAX_ATTESTATIONS" ssz-max:"128"`
Deposits []*Deposit `dynssz-max:"MAX_DEPOSITS" ssz-max:"16"`
VoluntaryExits []*SignedVoluntaryExit `dynssz-max:"MAX_VOLUNTARY_EXITS" ssz-max:"16"`
}
BeaconBlockBody represents the body of a beacon block.
func (*BeaconBlockBody) HashTreeRoot ¶
func (t *BeaconBlockBody) HashTreeRoot() (root [32]byte, err error)
HashTreeRoot computes the SSZ hash tree root of the *BeaconBlockBody.
func (*BeaconBlockBody) HashTreeRootWith ¶
func (t *BeaconBlockBody) HashTreeRootWith(hh sszutils.HashWalker) error
HashTreeRootWith computes the SSZ hash tree root of the *BeaconBlockBody using the given hash walker.
func (*BeaconBlockBody) MarshalJSON ¶
func (b *BeaconBlockBody) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler.
func (*BeaconBlockBody) MarshalSSZ ¶
func (t *BeaconBlockBody) MarshalSSZ() ([]byte, error)
MarshalSSZ marshals the *BeaconBlockBody to SSZ-encoded bytes.
func (*BeaconBlockBody) MarshalSSZTo ¶
func (t *BeaconBlockBody) MarshalSSZTo(buf []byte) (dst []byte, err error)
MarshalSSZTo marshals the *BeaconBlockBody to SSZ-encoded bytes, appending to the provided buffer.
func (*BeaconBlockBody) MarshalYAML ¶
func (b *BeaconBlockBody) MarshalYAML() ([]byte, error)
MarshalYAML implements yaml.Marshaler.
func (*BeaconBlockBody) SizeSSZ ¶
func (t *BeaconBlockBody) SizeSSZ() (size int)
SizeSSZ returns the SSZ encoded size of the *BeaconBlockBody.
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 (t *BeaconBlockBody) UnmarshalSSZ(buf []byte) (err error)
UnmarshalSSZ unmarshals the *BeaconBlockBody from SSZ-encoded bytes.
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) HashTreeRoot ¶
func (t *BeaconBlockHeader) HashTreeRoot() (root [32]byte, err error)
HashTreeRoot computes the SSZ hash tree root of the *BeaconBlockHeader.
func (*BeaconBlockHeader) HashTreeRootWith ¶
func (t *BeaconBlockHeader) HashTreeRootWith(hh sszutils.HashWalker) error
HashTreeRootWith computes the SSZ hash tree root of the *BeaconBlockHeader using the given hash walker.
func (*BeaconBlockHeader) MarshalJSON ¶
func (b *BeaconBlockHeader) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler.
func (*BeaconBlockHeader) MarshalSSZ ¶
func (t *BeaconBlockHeader) MarshalSSZ() ([]byte, error)
MarshalSSZ marshals the *BeaconBlockHeader to SSZ-encoded bytes.
func (*BeaconBlockHeader) MarshalSSZTo ¶
func (t *BeaconBlockHeader) MarshalSSZTo(buf []byte) (dst []byte, err error)
MarshalSSZTo marshals the *BeaconBlockHeader to SSZ-encoded bytes, appending to the provided buffer.
func (*BeaconBlockHeader) MarshalYAML ¶
func (b *BeaconBlockHeader) MarshalYAML() ([]byte, error)
MarshalYAML implements yaml.Marshaler.
func (*BeaconBlockHeader) SizeSSZ ¶
func (t *BeaconBlockHeader) SizeSSZ() (size int)
SizeSSZ returns the SSZ encoded size of the *BeaconBlockHeader.
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 (t *BeaconBlockHeader) UnmarshalSSZ(buf []byte) (err error)
UnmarshalSSZ unmarshals the *BeaconBlockHeader from SSZ-encoded bytes.
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 `dynssz-size:"SLOTS_PER_HISTORICAL_ROOT,32" ssz-size:"8192,32"`
StateRoots []Root `dynssz-size:"SLOTS_PER_HISTORICAL_ROOT,32" ssz-size:"8192,32"`
HistoricalRoots []Root `dynssz-max:"HISTORICAL_ROOTS_LIMIT" ssz-max:"16777216" ssz-size:"?,32"`
ETH1Data *ETH1Data
ETH1DataVotes []*ETH1Data `dynssz-max:"EPOCHS_PER_ETH1_VOTING_PERIOD*SLOTS_PER_EPOCH" ssz-max:"2048"`
ETH1DepositIndex uint64
Validators []*Validator `dynssz-max:"VALIDATOR_REGISTRY_LIMIT" ssz-max:"1099511627776"`
Balances []Gwei `dynssz-max:"VALIDATOR_REGISTRY_LIMIT" ssz-max:"1099511627776"`
RANDAOMixes []Root `dynssz-size:"EPOCHS_PER_HISTORICAL_VECTOR,32" ssz-size:"65536,32"`
Slashings []Gwei `dynssz-size:"EPOCHS_PER_SLASHINGS_VECTOR" ssz-size:"8192"`
PreviousEpochAttestations []*PendingAttestation `dynssz-max:"MAX_ATTESTATIONS*SLOTS_PER_EPOCH" ssz-max:"4096"`
CurrentEpochAttestations []*PendingAttestation `dynssz-max:"MAX_ATTESTATIONS*SLOTS_PER_EPOCH" ssz-max:"4096"`
JustificationBits bitfield.Bitvector4 `ssz-size:"1"`
PreviousJustifiedCheckpoint *Checkpoint
CurrentJustifiedCheckpoint *Checkpoint
FinalizedCheckpoint *Checkpoint
}
BeaconState represents a beacon state.
func (*BeaconState) HashTreeRoot ¶
func (t *BeaconState) HashTreeRoot() (root [32]byte, err error)
HashTreeRoot computes the SSZ hash tree root of the *BeaconState.
func (*BeaconState) HashTreeRootWith ¶
func (t *BeaconState) HashTreeRootWith(hh sszutils.HashWalker) error
HashTreeRootWith computes the SSZ hash tree root of the *BeaconState using the given hash walker.
func (*BeaconState) MarshalJSON ¶
func (s *BeaconState) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler.
func (*BeaconState) MarshalSSZ ¶
func (t *BeaconState) MarshalSSZ() ([]byte, error)
MarshalSSZ marshals the *BeaconState to SSZ-encoded bytes.
func (*BeaconState) MarshalSSZTo ¶
func (t *BeaconState) MarshalSSZTo(buf []byte) (dst []byte, err error)
MarshalSSZTo marshals the *BeaconState to SSZ-encoded bytes, appending to the provided buffer.
func (*BeaconState) MarshalYAML ¶
func (s *BeaconState) MarshalYAML() ([]byte, error)
MarshalYAML implements yaml.Marshaler.
func (*BeaconState) SizeSSZ ¶
func (t *BeaconState) SizeSSZ() (size int)
SizeSSZ returns the SSZ encoded size of the *BeaconState.
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 (t *BeaconState) UnmarshalSSZ(buf []byte) (err error)
UnmarshalSSZ unmarshals the *BeaconState from SSZ-encoded bytes.
func (*BeaconState) UnmarshalYAML ¶
func (s *BeaconState) UnmarshalYAML(input []byte) error
UnmarshalYAML implements yaml.Unmarshaler.
type Checkpoint ¶
Checkpoint provides information about a checkpoint.
func (*Checkpoint) HashTreeRoot ¶
func (t *Checkpoint) HashTreeRoot() (root [32]byte, err error)
HashTreeRoot computes the SSZ hash tree root of the *Checkpoint.
func (*Checkpoint) HashTreeRootWith ¶
func (t *Checkpoint) HashTreeRootWith(hh sszutils.HashWalker) error
HashTreeRootWith computes the SSZ hash tree root of the *Checkpoint using the given hash walker.
func (*Checkpoint) MarshalJSON ¶
func (c *Checkpoint) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler.
func (*Checkpoint) MarshalSSZ ¶
func (t *Checkpoint) MarshalSSZ() ([]byte, error)
MarshalSSZ marshals the *Checkpoint to SSZ-encoded bytes.
func (*Checkpoint) MarshalSSZTo ¶
func (t *Checkpoint) MarshalSSZTo(buf []byte) (dst []byte, err error)
MarshalSSZTo marshals the *Checkpoint to SSZ-encoded bytes, appending to the provided buffer.
func (*Checkpoint) MarshalYAML ¶
func (c *Checkpoint) MarshalYAML() ([]byte, error)
MarshalYAML implements yaml.Marshaler.
func (*Checkpoint) SizeSSZ ¶
func (t *Checkpoint) SizeSSZ() (size int)
SizeSSZ returns the SSZ encoded size of the *Checkpoint.
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 (t *Checkpoint) UnmarshalSSZ(buf []byte) (err error)
UnmarshalSSZ unmarshals the *Checkpoint from SSZ-encoded bytes.
func (*Checkpoint) UnmarshalYAML ¶
func (c *Checkpoint) UnmarshalYAML(input []byte) error
UnmarshalYAML implements yaml.Unmarshaler.
type Deposit ¶
type Deposit struct {
Proof [][]byte `dynssz-size:"DEPOSIT_CONTRACT_TREE_DEPTH+1,32" ssz-size:"33,32"`
Data *DepositData
}
Deposit provides information about a deposit.
func (*Deposit) HashTreeRoot ¶
HashTreeRoot computes the SSZ hash tree root of the *Deposit.
func (*Deposit) HashTreeRootWith ¶
func (t *Deposit) HashTreeRootWith(hh sszutils.HashWalker) error
HashTreeRootWith computes the SSZ hash tree root of the *Deposit using the given hash walker.
func (*Deposit) MarshalJSON ¶
MarshalJSON implements json.Marshaler.
func (*Deposit) MarshalSSZ ¶
MarshalSSZ marshals the *Deposit to SSZ-encoded bytes.
func (*Deposit) MarshalSSZTo ¶
MarshalSSZTo marshals the *Deposit to SSZ-encoded bytes, appending to the provided buffer.
func (*Deposit) MarshalYAML ¶
MarshalYAML implements yaml.Marshaler.
func (*Deposit) UnmarshalJSON ¶
UnmarshalJSON implements json.Unmarshaler.
func (*Deposit) UnmarshalSSZ ¶
UnmarshalSSZ unmarshals the *Deposit from SSZ-encoded bytes.
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) HashTreeRoot ¶
func (t *DepositData) HashTreeRoot() (root [32]byte, err error)
HashTreeRoot computes the SSZ hash tree root of the *DepositData.
func (*DepositData) HashTreeRootWith ¶
func (t *DepositData) HashTreeRootWith(hh sszutils.HashWalker) error
HashTreeRootWith computes the SSZ hash tree root of the *DepositData using the given hash walker.
func (*DepositData) MarshalJSON ¶
func (d *DepositData) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler.
func (*DepositData) MarshalSSZ ¶
func (t *DepositData) MarshalSSZ() ([]byte, error)
MarshalSSZ marshals the *DepositData to SSZ-encoded bytes.
func (*DepositData) MarshalSSZTo ¶
func (t *DepositData) MarshalSSZTo(buf []byte) (dst []byte, err error)
MarshalSSZTo marshals the *DepositData to SSZ-encoded bytes, appending to the provided buffer.
func (*DepositData) MarshalYAML ¶
func (d *DepositData) MarshalYAML() ([]byte, error)
MarshalYAML implements yaml.Marshaler.
func (*DepositData) SizeSSZ ¶
func (t *DepositData) SizeSSZ() (size int)
SizeSSZ returns the SSZ encoded size of the *DepositData.
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 (t *DepositData) UnmarshalSSZ(buf []byte) (err error)
UnmarshalSSZ unmarshals the *DepositData from SSZ-encoded bytes.
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) HashTreeRoot ¶
func (t *DepositMessage) HashTreeRoot() (root [32]byte, err error)
HashTreeRoot computes the SSZ hash tree root of the *DepositMessage.
func (*DepositMessage) HashTreeRootWith ¶
func (t *DepositMessage) HashTreeRootWith(hh sszutils.HashWalker) error
HashTreeRootWith computes the SSZ hash tree root of the *DepositMessage using the given hash walker.
func (*DepositMessage) MarshalJSON ¶
func (d *DepositMessage) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler.
func (*DepositMessage) MarshalSSZ ¶
func (t *DepositMessage) MarshalSSZ() ([]byte, error)
MarshalSSZ marshals the *DepositMessage to SSZ-encoded bytes.
func (*DepositMessage) MarshalSSZTo ¶
func (t *DepositMessage) MarshalSSZTo(buf []byte) (dst []byte, err error)
MarshalSSZTo marshals the *DepositMessage to SSZ-encoded bytes, appending to the provided buffer.
func (*DepositMessage) MarshalYAML ¶
func (d *DepositMessage) MarshalYAML() ([]byte, error)
MarshalYAML implements yaml.Marshaler.
func (*DepositMessage) SizeSSZ ¶
func (t *DepositMessage) SizeSSZ() (size int)
SizeSSZ returns the SSZ encoded size of the *DepositMessage.
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 (t *DepositMessage) UnmarshalSSZ(buf []byte) (err error)
UnmarshalSSZ unmarshals the *DepositMessage from SSZ-encoded bytes.
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 computes the SSZ hash tree root of the *ETH1Data.
func (*ETH1Data) HashTreeRootWith ¶
func (t *ETH1Data) HashTreeRootWith(hh sszutils.HashWalker) error
HashTreeRootWith computes the SSZ hash tree root of the *ETH1Data using the given hash walker.
func (*ETH1Data) MarshalJSON ¶
MarshalJSON implements json.Marshaler.
func (*ETH1Data) MarshalSSZ ¶
MarshalSSZ marshals the *ETH1Data to SSZ-encoded bytes.
func (*ETH1Data) MarshalSSZTo ¶
MarshalSSZTo marshals the *ETH1Data to SSZ-encoded bytes, appending to the provided buffer.
func (*ETH1Data) MarshalYAML ¶
MarshalYAML implements yaml.Marshaler.
func (*ETH1Data) UnmarshalJSON ¶
UnmarshalJSON implements json.Unmarshaler.
func (*ETH1Data) UnmarshalSSZ ¶
UnmarshalSSZ unmarshals the *ETH1Data from SSZ-encoded bytes.
func (*ETH1Data) UnmarshalYAML ¶
UnmarshalYAML implements yaml.Unmarshaler.
type Epoch ¶
type Epoch uint64
Epoch is an epoch number.
func (Epoch) MarshalJSON ¶
MarshalJSON implements json.Marshaler.
func (*Epoch) UnmarshalJSON ¶
UnmarshalJSON implements json.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 computes the SSZ hash tree root of the *Fork.
func (*Fork) HashTreeRootWith ¶
func (t *Fork) HashTreeRootWith(hh sszutils.HashWalker) error
HashTreeRootWith computes the SSZ hash tree root of the *Fork using the given hash walker.
func (*Fork) MarshalJSON ¶
MarshalJSON implements json.Marshaler.
func (*Fork) MarshalSSZ ¶
MarshalSSZ marshals the *Fork to SSZ-encoded bytes.
func (*Fork) MarshalSSZTo ¶
MarshalSSZTo marshals the *Fork to SSZ-encoded bytes, appending to the provided buffer.
func (*Fork) MarshalYAML ¶
MarshalYAML implements yaml.Marshaler.
func (*Fork) UnmarshalJSON ¶
UnmarshalJSON implements json.Unmarshaler.
func (*Fork) UnmarshalSSZ ¶
UnmarshalSSZ unmarshals the *Fork from SSZ-encoded bytes.
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 computes the SSZ hash tree root of the *ForkData.
func (*ForkData) HashTreeRootWith ¶
func (t *ForkData) HashTreeRootWith(hh sszutils.HashWalker) error
HashTreeRootWith computes the SSZ hash tree root of the *ForkData using the given hash walker.
func (*ForkData) MarshalJSON ¶
MarshalJSON implements json.Marshaler.
func (*ForkData) MarshalSSZ ¶
MarshalSSZ marshals the *ForkData to SSZ-encoded bytes.
func (*ForkData) MarshalSSZTo ¶
MarshalSSZTo marshals the *ForkData to SSZ-encoded bytes, appending to the provided buffer.
func (*ForkData) MarshalYAML ¶
MarshalYAML implements yaml.Marshaler.
func (*ForkData) UnmarshalJSON ¶
UnmarshalJSON implements json.Unmarshaler.
func (*ForkData) UnmarshalSSZ ¶
UnmarshalSSZ unmarshals the *ForkData from SSZ-encoded bytes.
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) HashTreeRoot ¶
func (t *IndexedAttestation) HashTreeRoot() (root [32]byte, err error)
HashTreeRoot computes the SSZ hash tree root of the *IndexedAttestation.
func (*IndexedAttestation) HashTreeRootWith ¶
func (t *IndexedAttestation) HashTreeRootWith(hh sszutils.HashWalker) error
HashTreeRootWith computes the SSZ hash tree root of the *IndexedAttestation using the given hash walker.
func (*IndexedAttestation) MarshalJSON ¶
func (i *IndexedAttestation) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler.
func (*IndexedAttestation) MarshalSSZ ¶
func (t *IndexedAttestation) MarshalSSZ() ([]byte, error)
MarshalSSZ marshals the *IndexedAttestation to SSZ-encoded bytes.
func (*IndexedAttestation) MarshalSSZTo ¶
func (t *IndexedAttestation) MarshalSSZTo(buf []byte) (dst []byte, err error)
MarshalSSZTo marshals the *IndexedAttestation to SSZ-encoded bytes, appending to the provided buffer.
func (*IndexedAttestation) MarshalYAML ¶
func (i *IndexedAttestation) MarshalYAML() ([]byte, error)
MarshalYAML implements yaml.Marshaler.
func (*IndexedAttestation) SizeSSZ ¶
func (t *IndexedAttestation) SizeSSZ() (size int)
SizeSSZ returns the SSZ encoded size of the *IndexedAttestation.
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 (t *IndexedAttestation) UnmarshalSSZ(buf []byte) (err error)
UnmarshalSSZ unmarshals the *IndexedAttestation from SSZ-encoded bytes.
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) HashTreeRoot ¶
func (t *PendingAttestation) HashTreeRoot() (root [32]byte, err error)
HashTreeRoot computes the SSZ hash tree root of the *PendingAttestation.
func (*PendingAttestation) HashTreeRootWith ¶
func (t *PendingAttestation) HashTreeRootWith(hh sszutils.HashWalker) error
HashTreeRootWith computes the SSZ hash tree root of the *PendingAttestation using the given hash walker.
func (*PendingAttestation) MarshalJSON ¶
func (p *PendingAttestation) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler.
func (*PendingAttestation) MarshalSSZ ¶
func (t *PendingAttestation) MarshalSSZ() ([]byte, error)
MarshalSSZ marshals the *PendingAttestation to SSZ-encoded bytes.
func (*PendingAttestation) MarshalSSZTo ¶
func (t *PendingAttestation) MarshalSSZTo(buf []byte) (dst []byte, err error)
MarshalSSZTo marshals the *PendingAttestation to SSZ-encoded bytes, appending to the provided buffer.
func (*PendingAttestation) MarshalYAML ¶
func (p *PendingAttestation) MarshalYAML() ([]byte, error)
MarshalYAML implements yaml.Marshaler.
func (*PendingAttestation) SizeSSZ ¶
func (t *PendingAttestation) SizeSSZ() (size int)
SizeSSZ returns the SSZ encoded size of the *PendingAttestation.
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 (t *PendingAttestation) UnmarshalSSZ(buf []byte) (err error)
UnmarshalSSZ unmarshals the *PendingAttestation from SSZ-encoded bytes.
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) HashTreeRoot ¶
func (t *ProposerSlashing) HashTreeRoot() (root [32]byte, err error)
HashTreeRoot computes the SSZ hash tree root of the *ProposerSlashing.
func (*ProposerSlashing) HashTreeRootWith ¶
func (t *ProposerSlashing) HashTreeRootWith(hh sszutils.HashWalker) error
HashTreeRootWith computes the SSZ hash tree root of the *ProposerSlashing using the given hash walker.
func (*ProposerSlashing) MarshalJSON ¶
func (p *ProposerSlashing) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler.
func (*ProposerSlashing) MarshalSSZ ¶
func (t *ProposerSlashing) MarshalSSZ() ([]byte, error)
MarshalSSZ marshals the *ProposerSlashing to SSZ-encoded bytes.
func (*ProposerSlashing) MarshalSSZTo ¶
func (t *ProposerSlashing) MarshalSSZTo(buf []byte) (dst []byte, err error)
MarshalSSZTo marshals the *ProposerSlashing to SSZ-encoded bytes, appending to the provided buffer.
func (*ProposerSlashing) MarshalYAML ¶
func (p *ProposerSlashing) MarshalYAML() ([]byte, error)
MarshalYAML implements yaml.Marshaler.
func (*ProposerSlashing) SizeSSZ ¶
func (t *ProposerSlashing) SizeSSZ() (size int)
SizeSSZ returns the SSZ encoded size of the *ProposerSlashing.
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 (t *ProposerSlashing) UnmarshalSSZ(buf []byte) (err error)
UnmarshalSSZ unmarshals the *ProposerSlashing from SSZ-encoded bytes.
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) HashTreeRoot ¶
func (t *SignedAggregateAndProof) HashTreeRoot() (root [32]byte, err error)
HashTreeRoot computes the SSZ hash tree root of the *SignedAggregateAndProof.
func (*SignedAggregateAndProof) HashTreeRootWith ¶
func (t *SignedAggregateAndProof) HashTreeRootWith(hh sszutils.HashWalker) error
HashTreeRootWith computes the SSZ hash tree root of the *SignedAggregateAndProof using the given hash walker.
func (*SignedAggregateAndProof) MarshalJSON ¶
func (s *SignedAggregateAndProof) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler.
func (*SignedAggregateAndProof) MarshalSSZ ¶
func (t *SignedAggregateAndProof) MarshalSSZ() ([]byte, error)
MarshalSSZ marshals the *SignedAggregateAndProof to SSZ-encoded bytes.
func (*SignedAggregateAndProof) MarshalSSZTo ¶
func (t *SignedAggregateAndProof) MarshalSSZTo(buf []byte) (dst []byte, err error)
MarshalSSZTo marshals the *SignedAggregateAndProof to SSZ-encoded bytes, appending to the provided buffer.
func (*SignedAggregateAndProof) MarshalYAML ¶
func (s *SignedAggregateAndProof) MarshalYAML() ([]byte, error)
MarshalYAML implements yaml.Marshaler.
func (*SignedAggregateAndProof) SizeSSZ ¶
func (t *SignedAggregateAndProof) SizeSSZ() (size int)
SizeSSZ returns the SSZ encoded size of the *SignedAggregateAndProof.
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 (t *SignedAggregateAndProof) UnmarshalSSZ(buf []byte) (err error)
UnmarshalSSZ unmarshals the *SignedAggregateAndProof from SSZ-encoded bytes.
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) HashTreeRoot ¶
func (t *SignedBeaconBlock) HashTreeRoot() (root [32]byte, err error)
HashTreeRoot computes the SSZ hash tree root of the *SignedBeaconBlock.
func (*SignedBeaconBlock) HashTreeRootWith ¶
func (t *SignedBeaconBlock) HashTreeRootWith(hh sszutils.HashWalker) error
HashTreeRootWith computes the SSZ hash tree root of the *SignedBeaconBlock using the given hash walker.
func (*SignedBeaconBlock) MarshalJSON ¶
func (s *SignedBeaconBlock) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler.
func (*SignedBeaconBlock) MarshalSSZ ¶
func (t *SignedBeaconBlock) MarshalSSZ() ([]byte, error)
MarshalSSZ marshals the *SignedBeaconBlock to SSZ-encoded bytes.
func (*SignedBeaconBlock) MarshalSSZTo ¶
func (t *SignedBeaconBlock) MarshalSSZTo(buf []byte) (dst []byte, err error)
MarshalSSZTo marshals the *SignedBeaconBlock to SSZ-encoded bytes, appending to the provided buffer.
func (*SignedBeaconBlock) MarshalYAML ¶
func (s *SignedBeaconBlock) MarshalYAML() ([]byte, error)
MarshalYAML implements yaml.Marshaler.
func (*SignedBeaconBlock) SizeSSZ ¶
func (t *SignedBeaconBlock) SizeSSZ() (size int)
SizeSSZ returns the SSZ encoded size of the *SignedBeaconBlock.
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 (t *SignedBeaconBlock) UnmarshalSSZ(buf []byte) (err error)
UnmarshalSSZ unmarshals the *SignedBeaconBlock from SSZ-encoded bytes.
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) HashTreeRoot ¶
func (t *SignedBeaconBlockHeader) HashTreeRoot() (root [32]byte, err error)
HashTreeRoot computes the SSZ hash tree root of the *SignedBeaconBlockHeader.
func (*SignedBeaconBlockHeader) HashTreeRootWith ¶
func (t *SignedBeaconBlockHeader) HashTreeRootWith(hh sszutils.HashWalker) error
HashTreeRootWith computes the SSZ hash tree root of the *SignedBeaconBlockHeader using the given hash walker.
func (*SignedBeaconBlockHeader) MarshalJSON ¶
func (s *SignedBeaconBlockHeader) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler.
func (*SignedBeaconBlockHeader) MarshalSSZ ¶
func (t *SignedBeaconBlockHeader) MarshalSSZ() ([]byte, error)
MarshalSSZ marshals the *SignedBeaconBlockHeader to SSZ-encoded bytes.
func (*SignedBeaconBlockHeader) MarshalSSZTo ¶
func (t *SignedBeaconBlockHeader) MarshalSSZTo(buf []byte) (dst []byte, err error)
MarshalSSZTo marshals the *SignedBeaconBlockHeader to SSZ-encoded bytes, appending to the provided buffer.
func (*SignedBeaconBlockHeader) MarshalYAML ¶
func (s *SignedBeaconBlockHeader) MarshalYAML() ([]byte, error)
MarshalYAML implements yaml.Marshaler.
func (*SignedBeaconBlockHeader) SizeSSZ ¶
func (t *SignedBeaconBlockHeader) SizeSSZ() (size int)
SizeSSZ returns the SSZ encoded size of the *SignedBeaconBlockHeader.
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 (t *SignedBeaconBlockHeader) UnmarshalSSZ(buf []byte) (err error)
UnmarshalSSZ unmarshals the *SignedBeaconBlockHeader from SSZ-encoded bytes.
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) HashTreeRoot ¶
func (t *SignedVoluntaryExit) HashTreeRoot() (root [32]byte, err error)
HashTreeRoot computes the SSZ hash tree root of the *SignedVoluntaryExit.
func (*SignedVoluntaryExit) HashTreeRootWith ¶
func (t *SignedVoluntaryExit) HashTreeRootWith(hh sszutils.HashWalker) error
HashTreeRootWith computes the SSZ hash tree root of the *SignedVoluntaryExit using the given hash walker.
func (*SignedVoluntaryExit) MarshalJSON ¶
func (s *SignedVoluntaryExit) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler.
func (*SignedVoluntaryExit) MarshalSSZ ¶
func (t *SignedVoluntaryExit) MarshalSSZ() ([]byte, error)
MarshalSSZ marshals the *SignedVoluntaryExit to SSZ-encoded bytes.
func (*SignedVoluntaryExit) MarshalSSZTo ¶
func (t *SignedVoluntaryExit) MarshalSSZTo(buf []byte) (dst []byte, err error)
MarshalSSZTo marshals the *SignedVoluntaryExit to SSZ-encoded bytes, appending to the provided buffer.
func (*SignedVoluntaryExit) MarshalYAML ¶
func (s *SignedVoluntaryExit) MarshalYAML() ([]byte, error)
MarshalYAML implements yaml.Marshaler.
func (*SignedVoluntaryExit) SizeSSZ ¶
func (t *SignedVoluntaryExit) SizeSSZ() (size int)
SizeSSZ returns the SSZ encoded size of the *SignedVoluntaryExit.
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 (t *SignedVoluntaryExit) UnmarshalSSZ(buf []byte) (err error)
UnmarshalSSZ unmarshals the *SignedVoluntaryExit from SSZ-encoded bytes.
func (*SignedVoluntaryExit) UnmarshalYAML ¶
func (s *SignedVoluntaryExit) UnmarshalYAML(input []byte) error
UnmarshalYAML implements yaml.Unmarshaler.
type SigningData ¶
SigningData provides information about signing data.
func (*SigningData) HashTreeRoot ¶
func (t *SigningData) HashTreeRoot() (root [32]byte, err error)
HashTreeRoot computes the SSZ hash tree root of the *SigningData.
func (*SigningData) HashTreeRootWith ¶
func (t *SigningData) HashTreeRootWith(hh sszutils.HashWalker) error
HashTreeRootWith computes the SSZ hash tree root of the *SigningData using the given hash walker.
func (*SigningData) MarshalJSON ¶
func (s *SigningData) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler.
func (*SigningData) MarshalSSZ ¶
func (t *SigningData) MarshalSSZ() ([]byte, error)
MarshalSSZ marshals the *SigningData to SSZ-encoded bytes.
func (*SigningData) MarshalSSZTo ¶
func (t *SigningData) MarshalSSZTo(buf []byte) (dst []byte, err error)
MarshalSSZTo marshals the *SigningData to SSZ-encoded bytes, appending to the provided buffer.
func (*SigningData) MarshalYAML ¶
func (s *SigningData) MarshalYAML() ([]byte, error)
MarshalYAML implements yaml.Marshaler.
func (*SigningData) SizeSSZ ¶
func (t *SigningData) SizeSSZ() (size int)
SizeSSZ returns the SSZ encoded size of the *SigningData.
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 (t *SigningData) UnmarshalSSZ(buf []byte) (err error)
UnmarshalSSZ unmarshals the *SigningData from SSZ-encoded bytes.
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 computes the SSZ hash tree root of the *Validator.
func (*Validator) HashTreeRootWith ¶
func (t *Validator) HashTreeRootWith(hh sszutils.HashWalker) error
HashTreeRootWith computes the SSZ hash tree root of the *Validator using the given hash walker.
func (*Validator) MarshalJSON ¶
MarshalJSON implements json.Marshaler.
func (*Validator) MarshalSSZ ¶
MarshalSSZ marshals the *Validator to SSZ-encoded bytes.
func (*Validator) MarshalSSZTo ¶
MarshalSSZTo marshals the *Validator to SSZ-encoded bytes, appending to the provided buffer.
func (*Validator) MarshalYAML ¶
MarshalYAML implements yaml.Marshaler.
func (*Validator) UnmarshalJSON ¶
UnmarshalJSON implements json.Unmarshaler.
func (*Validator) UnmarshalSSZ ¶
UnmarshalSSZ unmarshals the *Validator from SSZ-encoded bytes.
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) HashTreeRoot ¶
func (t *VoluntaryExit) HashTreeRoot() (root [32]byte, err error)
HashTreeRoot computes the SSZ hash tree root of the *VoluntaryExit.
func (*VoluntaryExit) HashTreeRootWith ¶
func (t *VoluntaryExit) HashTreeRootWith(hh sszutils.HashWalker) error
HashTreeRootWith computes the SSZ hash tree root of the *VoluntaryExit using the given hash walker.
func (*VoluntaryExit) MarshalJSON ¶
func (v *VoluntaryExit) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler.
func (*VoluntaryExit) MarshalSSZ ¶
func (t *VoluntaryExit) MarshalSSZ() ([]byte, error)
MarshalSSZ marshals the *VoluntaryExit to SSZ-encoded bytes.
func (*VoluntaryExit) MarshalSSZTo ¶
func (t *VoluntaryExit) MarshalSSZTo(buf []byte) (dst []byte, err error)
MarshalSSZTo marshals the *VoluntaryExit to SSZ-encoded bytes, appending to the provided buffer.
func (*VoluntaryExit) MarshalYAML ¶
func (v *VoluntaryExit) MarshalYAML() ([]byte, error)
MarshalYAML implements yaml.Marshaler.
func (*VoluntaryExit) SizeSSZ ¶
func (t *VoluntaryExit) SizeSSZ() (size int)
SizeSSZ returns the SSZ encoded size of the *VoluntaryExit.
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 (t *VoluntaryExit) UnmarshalSSZ(buf []byte) (err error)
UnmarshalSSZ unmarshals the *VoluntaryExit from SSZ-encoded bytes.
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