Versions in this module Expand all Collapse all v1 v1.0.0 Nov 9, 2019 Changes in this version + var DomainBeaconAttester = []byte + var DomainBeaconProposer = []byte + var DomainDeposit = []byte + var DomainRANDAO = []byte + var DomainVoluntaryExit = []byte + var ErrMalformed = errors.New("malformed representation") + func Domain(domainType []byte, forkVersion []byte) uint64 + 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, domain uint64) Signature + type BLSPublicKey struct + func BLSPublicKeyFromBytes(pub []byte) (*BLSPublicKey, error) + func (p *BLSPublicKey) Aggregate(other PublicKey) PublicKey + func (p *BLSPublicKey) Marshal() []byte + type BLSSignature struct + func (s *BLSSignature) Marshal() []byte + func (s *BLSSignature) Verify(msg []byte, pubKey PublicKey, domain uint64) bool + func (s *BLSSignature) VerifyAggregate(msgs [][32]byte, pubKeys []PublicKey, domain uint64) bool + func (s *BLSSignature) VerifyAggregateCommon(msg []byte, pubKeys []PublicKey, domain uint64) bool + type PrivateKey interface + Marshal func() []byte + PublicKey func() PublicKey + Sign func(msg []byte, domain uint64) Signature + type PublicKey interface + Aggregate func(p2 PublicKey) PublicKey + Marshal func() []byte + type Signature interface + Marshal func() []byte + Verify func(msg []byte, pub PublicKey, domain uint64) bool + VerifyAggregate func(msgs [][32]byte, pubKeys []PublicKey, domain uint64) bool + VerifyAggregateCommon func(msg []byte, pubKeys []PublicKey, domain uint64) bool + func AggregateSignatures(sigs []Signature) Signature + func BLSSignatureFromBytes(data []byte) (Signature, error) Other modules containing this package github.com/wealdtech/go-eth2-types/v2