Documentation ¶
Overview ¶
Code generated by fastssz. DO NOT EDIT. Hash: df71c3c8ba50391fbde221aa1571972be4dc214a4dd9bae00af6445efc38f540
Index ¶
- Variables
- func ComputeSSZDomain(dt DomainType, forkVersion ForkVersion, genesisValidatorsRoot Root) [32]byte
- func ComputeSigningRoot(obj HashTreeRoot, d Domain) ([32]byte, error)
- func SignMessage(obj HashTreeRoot, d Domain, sk *bls.SecretKey) (phase0.BLSSignature, error)
- func VerifySignature(obj HashTreeRoot, d Domain, pkBytes, sigBytes []byte) (bool, error)
- type Domain
- type DomainType
- 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) MarshalSSZ() ([]byte, error)
- func (f *ForkData) MarshalSSZTo(buf []byte) (dst []byte, err error)
- func (f *ForkData) SizeSSZ() (size int)
- func (f *ForkData) UnmarshalSSZ(buf []byte) error
- type ForkVersion
- type HashTreeRoot
- type Root
- 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) MarshalSSZ() ([]byte, error)
- func (s *SigningData) MarshalSSZTo(buf []byte) (dst []byte, err error)
- func (s *SigningData) SizeSSZ() (size int)
- func (s *SigningData) UnmarshalSSZ(buf []byte) error
Constants ¶
This section is empty.
Variables ¶
var ( DomainBuilder Domain DomainTypeBeaconProposer = DomainType{0x00, 0x00, 0x00, 0x00} DomainTypeAppBuilder = DomainType{0x00, 0x00, 0x00, 0x01} )
Functions ¶
func ComputeSSZDomain ¶
func ComputeSSZDomain(dt DomainType, forkVersion ForkVersion, genesisValidatorsRoot Root) [32]byte
func ComputeSigningRoot ¶
func ComputeSigningRoot(obj HashTreeRoot, d Domain) ([32]byte, error)
func SignMessage ¶
func SignMessage(obj HashTreeRoot, d Domain, sk *bls.SecretKey) (phase0.BLSSignature, error)
func VerifySignature ¶
func VerifySignature(obj HashTreeRoot, d Domain, pkBytes, sigBytes []byte) (bool, error)
Types ¶
type Domain ¶
type Domain [32]byte
func ComputeDomain ¶
func ComputeDomain(domainType DomainType, forkVersionHex, genesisValidatorsRootHex string) (domain Domain, err error)
type DomainType ¶
type DomainType [4]byte
type ForkData ¶
type ForkData struct { CurrentVersion ForkVersion `ssz-size:"4"` GenesisValidatorsRoot Root `ssz-size:"32"` }
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) MarshalSSZ ¶
MarshalSSZ ssz marshals the ForkData object
func (*ForkData) MarshalSSZTo ¶
MarshalSSZTo ssz marshals the ForkData object to a target array
func (*ForkData) UnmarshalSSZ ¶
UnmarshalSSZ ssz unmarshals the ForkData object
type ForkVersion ¶
type ForkVersion [4]byte
func (*ForkVersion) FromSlice ¶
func (f *ForkVersion) FromSlice(s []byte) error
type HashTreeRoot ¶
type SigningData ¶
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) 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) SizeSSZ ¶
func (s *SigningData) SizeSSZ() (size int)
SizeSSZ returns the ssz encoded size in bytes for the SigningData object
func (*SigningData) UnmarshalSSZ ¶
func (s *SigningData) UnmarshalSSZ(buf []byte) error
UnmarshalSSZ ssz unmarshals the SigningData object