Versions in this module Expand all Collapse all v1 v1.2.0 Feb 14, 2024 Changes in this version type Reshare + CeremonySigs []byte + Keyshares []byte type ResultData + CeremonySigs []byte v1.1.0 Jan 1, 2024 Changes in this version + type Ping struct + InitiatorPublicKey []byte + Operators []*Operator + func (p *Ping) GetTree() (*ssz.Node, error) + func (p *Ping) HashTreeRoot() ([32]byte, error) + func (p *Ping) HashTreeRootWith(hh ssz.HashWalker) (err error) + func (p *Ping) MarshalSSZ() ([]byte, error) + func (p *Ping) MarshalSSZTo(buf []byte) (dst []byte, err error) + func (p *Ping) SizeSSZ() (size int) + func (p *Ping) UnmarshalSSZ(buf []byte) error + type Pong struct + PubKey []byte + func (p *Pong) GetTree() (*ssz.Node, error) + func (p *Pong) HashTreeRoot() ([32]byte, error) + func (p *Pong) HashTreeRootWith(hh ssz.HashWalker) (err error) + func (p *Pong) MarshalSSZ() ([]byte, error) + func (p *Pong) MarshalSSZTo(buf []byte) (dst []byte, err error) + func (p *Pong) SizeSSZ() (size int) + func (p *Pong) UnmarshalSSZ(buf []byte) error + type ResultData struct + DepositData []byte + Identifier [24]byte + KeysharesData []byte + Operators []*Operator + func (r *ResultData) GetTree() (*ssz.Node, error) + func (r *ResultData) HashTreeRoot() ([32]byte, error) + func (r *ResultData) HashTreeRootWith(hh ssz.HashWalker) (err error) + func (r *ResultData) MarshalSSZ() ([]byte, error) + func (r *ResultData) MarshalSSZTo(buf []byte) (dst []byte, err error) + func (r *ResultData) SizeSSZ() (size int) + func (r *ResultData) UnmarshalSSZ(buf []byte) error + type SSZMarshaller interface + MarshalSSZ func() ([]byte, error) + UnmarshalSSZ func(buf []byte) error type Transport + Version []byte type TransportType + const PingMessageType + const PongMessageType + const ResultMessageType v1.0.2 Nov 22, 2023 v1.0.1 Nov 13, 2023 v1.0.0 Nov 9, 2023 Changes in this version + func NewReshareProtocolNewNodes(config *Config) (*dkg.Protocol, error) + func NewReshareProtocolOldNodes(config *Config) (*dkg.Protocol, error) type Config + NewNodes []dkg.Node + NewT int + OldNodes []dkg.Node + PublicCoeffs []kyber.Point + Share *dkg.DistKeyShare type Exchange + Commits []byte + type Reshare struct + InitiatorPublicKey []byte + NewOperators []*Operator + NewT uint64 + Nonce uint64 + OldID [24]byte + OldOperators []*Operator + OldT uint64 + Owner [20]byte + func (r *Reshare) GetTree() (*ssz.Node, error) + func (r *Reshare) HashTreeRoot() ([32]byte, error) + func (r *Reshare) HashTreeRootWith(hh ssz.HashWalker) (err error) + func (r *Reshare) MarshalSSZ() ([]byte, error) + func (r *Reshare) MarshalSSZTo(buf []byte) (dst []byte, err error) + func (r *Reshare) SizeSSZ() (size int) + func (r *Reshare) UnmarshalSSZ(buf []byte) error + type ReshareKyberMessage struct + Data []byte + Type TransportType + func (r *ReshareKyberMessage) GetTree() (*ssz.Node, error) + func (r *ReshareKyberMessage) HashTreeRoot() ([32]byte, error) + func (r *ReshareKyberMessage) HashTreeRootWith(hh ssz.HashWalker) (err error) + func (r *ReshareKyberMessage) MarshalSSZ() ([]byte, error) + func (r *ReshareKyberMessage) MarshalSSZTo(buf []byte) (dst []byte, err error) + func (r *ReshareKyberMessage) SizeSSZ() (size int) + func (r *ReshareKyberMessage) UnmarshalSSZ(buf []byte) error type TransportType + const ReshareExchangeMessageType + const ReshareKyberMessageType + const ReshareMessageType v0 v0.0.1 Oct 18, 2023 Changes in this version + const NonceLength + func DecodeDealBundle(byts []byte, suite dkg.Suite) (*dkg.DealBundle, error) + func DecodeJustificationBundle(byts []byte, suite dkg.Suite) (*dkg.JustificationBundle, error) + func DecodeResponseBundle(byts []byte) (*dkg.ResponseBundle, error) + func EncodeDealBundle(bundle *dkg.DealBundle) ([]byte, error) + func EncodeJustificationBundle(bundle *dkg.JustificationBundle) ([]byte, error) + func EncodeResponseBundle(bundle *dkg.ResponseBundle) ([]byte, error) + func GetErr(msg []byte) (error, error) + func GetNonce(input []byte) []byte + func MakeErr(err error) []byte + func NewDKGProtocol(config *Config) (*dkg.Protocol, error) + type Config struct + Board dkg.Board + Identifier []byte + Logger *zap.Logger + Nodes []dkg.Node + Secret kyber.Scalar + Suite pairing.Suite + T int + type ErrSSZ struct + Error []byte + func (e *ErrSSZ) GetTree() (*ssz.Node, error) + func (e *ErrSSZ) HashTreeRoot() ([32]byte, error) + func (e *ErrSSZ) HashTreeRootWith(hh ssz.HashWalker) (err error) + func (e *ErrSSZ) MarshalSSZ() ([]byte, error) + func (e *ErrSSZ) MarshalSSZTo(buf []byte) (dst []byte, err error) + func (e *ErrSSZ) SizeSSZ() (size int) + func (e *ErrSSZ) UnmarshalSSZ(buf []byte) error + type Exchange struct + PK []byte + func (e *Exchange) GetTree() (*ssz.Node, error) + func (e *Exchange) HashTreeRoot() ([32]byte, error) + func (e *Exchange) HashTreeRootWith(hh ssz.HashWalker) (err error) + func (e *Exchange) MarshalSSZ() ([]byte, error) + func (e *Exchange) MarshalSSZTo(buf []byte) (dst []byte, err error) + func (e *Exchange) SizeSSZ() (size int) + func (e *Exchange) UnmarshalSSZ(buf []byte) error + type Init struct + Fork [4]byte + InitiatorPublicKey []byte + Nonce uint64 + Operators []*Operator + Owner [20]byte + T uint64 + WithdrawalCredentials []byte + func (i *Init) GetTree() (*ssz.Node, error) + func (i *Init) HashTreeRoot() ([32]byte, error) + func (i *Init) HashTreeRootWith(hh ssz.HashWalker) (err error) + func (i *Init) MarshalSSZ() ([]byte, error) + func (i *Init) MarshalSSZTo(buf []byte) (dst []byte, err error) + func (i *Init) SizeSSZ() (size int) + func (i *Init) UnmarshalSSZ(buf []byte) error + type KyberMessage struct + Data []byte + Type TransportType + func (k *KyberMessage) GetTree() (*ssz.Node, error) + func (k *KyberMessage) HashTreeRoot() ([32]byte, error) + func (k *KyberMessage) HashTreeRootWith(hh ssz.HashWalker) (err error) + func (k *KyberMessage) MarshalSSZ() ([]byte, error) + func (k *KyberMessage) MarshalSSZTo(buf []byte) (dst []byte, err error) + func (k *KyberMessage) SizeSSZ() (size int) + func (k *KyberMessage) UnmarshalSSZ(buf []byte) error + type LogWrapper struct + Logger *zap.Logger + func New(logger *zap.Logger) *LogWrapper + func (l *LogWrapper) Error(vals ...interface{}) + func (l *LogWrapper) Info(vals ...interface{}) + type MultipleSignedTransports struct + Identifier [24]byte + Messages []*SignedTransport + Signature []byte + func (m *MultipleSignedTransports) GetTree() (*ssz.Node, error) + func (m *MultipleSignedTransports) HashTreeRoot() ([32]byte, error) + func (m *MultipleSignedTransports) HashTreeRootWith(hh ssz.HashWalker) (err error) + func (m *MultipleSignedTransports) MarshalSSZ() ([]byte, error) + func (m *MultipleSignedTransports) MarshalSSZTo(buf []byte) (dst []byte, err error) + func (m *MultipleSignedTransports) SizeSSZ() (size int) + func (m *MultipleSignedTransports) UnmarshalSSZ(buf []byte) error + type Operator struct + ID uint64 + PubKey []byte + func (o *Operator) GetTree() (*ssz.Node, error) + func (o *Operator) HashTreeRoot() ([32]byte, error) + func (o *Operator) HashTreeRootWith(hh ssz.HashWalker) (err error) + func (o *Operator) MarshalSSZ() ([]byte, error) + func (o *Operator) MarshalSSZTo(buf []byte) (dst []byte, err error) + func (o *Operator) SizeSSZ() (size int) + func (o *Operator) UnmarshalSSZ(buf []byte) error + type Output struct + DepositDataPartialSignature []byte + EncryptedShare []byte + SharePK []byte + ValidatorPK []byte + func (o *Output) GetTree() (*ssz.Node, error) + func (o *Output) HashTreeRoot() ([32]byte, error) + func (o *Output) HashTreeRootWith(hh ssz.HashWalker) (err error) + func (o *Output) MarshalSSZ() ([]byte, error) + func (o *Output) MarshalSSZTo(buf []byte) (dst []byte, err error) + func (o *Output) SizeSSZ() (size int) + func (o *Output) UnmarshalSSZ(buf []byte) error + type SignedTransport struct + Message *Transport + Signature []byte + Signer uint64 + func (s *SignedTransport) GetTree() (*ssz.Node, error) + func (s *SignedTransport) HashTreeRoot() ([32]byte, error) + func (s *SignedTransport) HashTreeRootWith(hh ssz.HashWalker) (err error) + func (s *SignedTransport) MarshalSSZ() ([]byte, error) + func (s *SignedTransport) MarshalSSZTo(buf []byte) (dst []byte, err error) + func (s *SignedTransport) SizeSSZ() (size int) + func (s *SignedTransport) UnmarshalSSZ(buf []byte) error + type Transport struct + Data []byte + Identifier [24]byte + Type TransportType + func (t *Transport) GetTree() (*ssz.Node, error) + func (t *Transport) HashTreeRoot() ([32]byte, error) + func (t *Transport) HashTreeRootWith(hh ssz.HashWalker) (err error) + func (t *Transport) MarshalSSZ() ([]byte, error) + func (t *Transport) MarshalSSZTo(buf []byte) (dst []byte, err error) + func (t *Transport) SizeSSZ() (size int) + func (t *Transport) UnmarshalSSZ(buf []byte) error + type TransportType uint64 + const BlsSignRequestType + const ErrorMessageType + const ExchangeMessageType + const InitMessageType + const InitReshareMessageType + const KyberDealBundleMessageType + const KyberJustificationBundleMessageType + const KyberMessageType + const KyberResponseBundleMessageType + const OutputMessageType + func (t TransportType) String() string