Documentation
¶
Overview ¶
Package bls provides threshold BLS signature functionality by bridging the crypto/bls implementation with the threshold protocol framework.
Index ¶
- func AggregateSignatures(signatures []*bls.Signature, threshold int) (*bls.Signature, error)
- func Keygen(selfID party.ID, participants []party.ID, threshold int, pl *pool.Pool) protocol.StartFunc
- func SignProtocol(config *Config, signers []party.ID, message []byte, pl *pool.Pool) protocol.StartFunc
- type Config
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AggregateSignatures ¶
AggregateSignatures combines threshold signatures into a single signature
Types ¶
type Config ¶
type Config struct {
// ID is this party's identifier
ID party.ID
// Threshold is the minimum number of parties needed to sign
Threshold int
// PublicKey is the aggregate public key
PublicKey *bls.PublicKey
SecretShare *bls.SecretKey
// VerificationKeys are the public keys for each party's share
VerificationKeys map[party.ID]*bls.PublicKey
}
Config holds BLS threshold signing configuration
func (*Config) VerifyAggregateSignature ¶
VerifyAggregateSignature verifies the final aggregated signature
Click to show internal directories.
Click to hide internal directories.