Documentation
¶
Index ¶
- type CGGMP21Protocol
- func (p *CGGMP21Protocol) Close()
- func (p *CGGMP21Protocol) KeyGen(selfID string, partyIDs []string, threshold int) (protocol.Party, error)
- func (p *CGGMP21Protocol) Name() string
- func (p *CGGMP21Protocol) PreSign(cfg protocol.KeyGenConfig, signers []string) (protocol.Party, error)
- func (p *CGGMP21Protocol) PreSignOnline(cfg protocol.KeyGenConfig, preSig protocol.PreSignature, messageHash []byte) (protocol.Party, error)
- func (p *CGGMP21Protocol) Refresh(cfg protocol.KeyGenConfig) (protocol.Party, error)
- func (p *CGGMP21Protocol) Sign(cfg protocol.KeyGenConfig, signers []string, messageHash []byte) (protocol.Party, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CGGMP21Protocol ¶
type CGGMP21Protocol struct {
// contains filtered or unexported fields
}
CGGMP21Protocol implements the Protocol interface using CGGMP21
func NewCGGMP21Protocol ¶
func NewCGGMP21Protocol() *CGGMP21Protocol
NewCGGMP21Protocol creates a new CGGMP21 protocol adapter
func (*CGGMP21Protocol) KeyGen ¶
func (p *CGGMP21Protocol) KeyGen(selfID string, partyIDs []string, threshold int) (protocol.Party, error)
KeyGen starts a distributed key generation
func (*CGGMP21Protocol) Name ¶
func (p *CGGMP21Protocol) Name() string
Name returns the protocol name
func (*CGGMP21Protocol) PreSign ¶
func (p *CGGMP21Protocol) PreSign(cfg protocol.KeyGenConfig, signers []string) (protocol.Party, error)
PreSign starts a presigning protocol
func (*CGGMP21Protocol) PreSignOnline ¶
func (p *CGGMP21Protocol) PreSignOnline(cfg protocol.KeyGenConfig, preSig protocol.PreSignature, messageHash []byte) (protocol.Party, error)
PreSignOnline completes a signature with a presignature
func (*CGGMP21Protocol) Refresh ¶
func (p *CGGMP21Protocol) Refresh(cfg protocol.KeyGenConfig) (protocol.Party, error)
Refresh refreshes shares from an existing config
func (*CGGMP21Protocol) Sign ¶
func (p *CGGMP21Protocol) Sign(cfg protocol.KeyGenConfig, signers []string, messageHash []byte) (protocol.Party, error)
Sign starts a signing protocol
Click to show internal directories.
Click to hide internal directories.