Versions in this module Expand all Collapse all v1 v1.9.0 Jul 12, 2023 Changes in this version + func EncodeAlice(a *Alice) ([]byte, error) + func EncodeBob(b *Bob) ([]byte, error) + func NewPipeWrappers() (*pipeWrapper, *pipeWrapper) + type Alice struct + Pk *curves.EcPoint + PkA *Schnorr + Receiver *seedOTReceiver + SkA *big.Int + func DecodeAlice(params *Params, b []byte) (*Alice, error) + func NewAlice(params *Params) *Alice + func (alice *Alice) DKG(rw io.ReadWriter) error + func (alice *Alice) Sign(m []byte, rw io.ReadWriter) error + type AliceDkg struct + Alice *Alice + func NewAliceDkg(params *Params) *AliceDkg + func (a *AliceDkg) Result() (interface{}, error) + func (a *AliceDkg) SetDebug(log io.Writer) + func (p *AliceDkg) Next(rw io.ReadWriter) error + type AliceSign struct + func NewAliceSign(params *Params, msg []byte, dkgResult []byte) (*AliceSign, error) + func (a *AliceSign) Result() (interface{}, error) + func (a *AliceSign) SetDebug(log io.Writer) + func (p *AliceSign) Next(rw io.ReadWriter) error + type Bob struct + Pk *curves.EcPoint + PkB *Schnorr + Sender *seedOTSender + Sig *curves.EcdsaSignature + SkB *big.Int + func DecodeBob(params *Params, b []byte) (*Bob, error) + func NewBob(params *Params) *Bob + func (bob *Bob) DKG(rw io.ReadWriter) error + func (bob *Bob) Sign(m []byte, rw io.ReadWriter) error + type BobDkg struct + Bob *Bob + func NewBobDkg(params *Params) *BobDkg + func (b *BobDkg) Result() (interface{}, error) + func (b *BobDkg) SetDebug(log io.Writer) + func (p *BobDkg) Next(rw io.ReadWriter) error + type BobSign struct + func NewBobSign(params *Params, msg []byte, dkgResult []byte) (*BobSign, error) + func (b *BobSign) SetDebug(log io.Writer) + func (d *BobSign) Result() (interface{}, error) + func (p *BobSign) Next(rw io.ReadWriter) error + type DkgResult struct + DkgState []byte + Pubkey *curves.EcPoint + type MultiplyReceiver struct + TB []*big.Int + func NewMultiplyReceiver(multiplicity int, sender *seedOTSender) *MultiplyReceiver + func (receiver *MultiplyReceiver) MultiplyInit(idExt [32]byte, beta []*big.Int, w io.Writer) error + func (receiver *MultiplyReceiver) MultiplyTransfer(r io.Reader) error + type MultiplySender struct + TA []*big.Int + func NewMultiplySender(multiplicity int, receiver *seedOTReceiver) *MultiplySender + func (sender *MultiplySender) Multiply(idExt [32]byte, alpha []*big.Int, rw io.ReadWriter) error + type Params struct + Curve elliptic.Curve + Generator *curves.EcPoint + Scalar curves.EcScalar + func NewParams(curve elliptic.Curve, scalar curves.EcScalar) (*Params, error) + type ProtocolIterator interface + Next func(rw io.ReadWriter) error + Result func() (interface{}, error) + SetDebug func(log io.Writer) + type Schnorr struct + C *big.Int + Pub *curves.EcPoint + S *big.Int + func (proof *Schnorr) DecommitVerify(com []byte) error + func (proof *Schnorr) Prove(x *big.Int) error + func (proof *Schnorr) ProveCommit(x *big.Int) ([]byte, error) + func (proof *Schnorr) Verify() error