Versions in this module Expand all Collapse all v2 v2.5.2 Nov 25, 2020 Changes in this version + var DomainAggregateAndProof = []byte + var DomainBeaconAttester = DomainType + var DomainBeaconProposer = DomainType + var DomainDeposit = DomainType + var DomainRANDAO = DomainType + var DomainSelectionProof = []byte + var DomainVoluntaryExit = DomainType + var ErrMalformed = errors.New("malformed representation") + var ZeroForkVersion = []byte + var ZeroGenesisValidatorsRoot = []byte + func ComputeDomain(domainType DomainType, forkVersion []byte, genesisValidatorsRoot []byte) ([]byte, error) + func Domain(domainType DomainType, forkVersion []byte, genesisValidatorsRoot []byte) []byte + func InitBLS() error + type BLSPrivateKey struct + func BLSPrivateKeyFromBytes(priv []byte) (*BLSPrivateKey, error) + func GenerateBLSPrivateKey() (*BLSPrivateKey, error) + func (p *BLSPrivateKey) Marshal() []byte + func (p *BLSPrivateKey) PublicKey() PublicKey + func (p *BLSPrivateKey) Sign(msg []byte) Signature + type BLSPublicKey struct + func BLSPublicKeyFromBytes(pub []byte) (*BLSPublicKey, error) + func (k *BLSPublicKey) Aggregate(other PublicKey) + func (k *BLSPublicKey) Copy() PublicKey + func (k *BLSPublicKey) Marshal() []byte + type BLSSignature struct + func AggregateSignatures(sigs []Signature) *BLSSignature + func (s *BLSSignature) Marshal() []byte + func (s *BLSSignature) Verify(msg []byte, pubKey PublicKey) bool + func (s *BLSSignature) VerifyAggregate(msgs [][]byte, pubKeys []PublicKey) bool + func (s *BLSSignature) VerifyAggregateCommon(msg []byte, pubKeys []PublicKey) bool + type DomainType [4]byte + type ForkData struct + CurrentVersion []byte + GenesisValidatorsRoot []byte + func (f *ForkData) HashTreeRoot() ([32]byte, error) + func (f *ForkData) HashTreeRootWith(hh *ssz.Hasher) (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 PrivateKey interface + Marshal func() []byte + PublicKey func() PublicKey + Sign func(msg []byte) Signature + type PublicKey interface + Aggregate func(other PublicKey) + Copy func() PublicKey + Marshal func() []byte + type Signature interface + Marshal func() []byte + Verify func(msg []byte, pub PublicKey) bool + VerifyAggregate func(msgs [][]byte, pubKeys []PublicKey) bool + VerifyAggregateCommon func(msg []byte, pubKeys []PublicKey) bool + func BLSSignatureFromBytes(data []byte) (Signature, error) + func BLSSignatureFromSig(sig bls.Sign) (Signature, error)