cggmp21

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 25, 2025 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

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) Close

func (p *CGGMP21Protocol) Close()

Close cleans up resources

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

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL