Documentation
¶
Index ¶
- func AggregateSignatures(tss TSS, partialSigs []*bls_sig.PartialSignature, msg []byte) (*bls_sig.Signature, []byte, error)
- func PartialSign(sks *bls_sig.SecretKeyShare, msg []byte) (*bls_sig.PartialSignature, error)
- func Verify(pk *bls_sig.PublicKey, msg []byte, sig *bls_sig.Signature) (bool, error)
- type PubShare
- type TSS
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AggregateSignatures ¶
func AggregateSignatures(tss TSS, partialSigs []*bls_sig.PartialSignature, msg []byte) (*bls_sig.Signature, []byte, error)
AggregateSignatures aggregates partial signatures over the given message. Returns aggregated signatures and slice of signers identifiers that had valid partial signatures.
func PartialSign ¶
func PartialSign(sks *bls_sig.SecretKeyShare, msg []byte) (*bls_sig.PartialSignature, error)
PartialSign signs given message(msg) using given Secret Key Share(sks) and returns a Partial Signature.
Types ¶
type PubShare ¶
type PubShare struct {
// contains filtered or unexported fields
}
PubShare is a public share corresponding to a secret share.
type TSS ¶
TSS (threshold signing scheme) wraps PubKey (PublicKey), verifiers (the public shares corresponding to each secret share) and threshold (number of shares).
func GenerateTSS ¶
func GenerateTSS(t, n int) (TSS, []*bls_sig.SecretKeyShare, error)
GenerateTSS returns a new random instance of threshold signing scheme and associated SecretKeyShares. It generates n number of secret key shares where t of them can be combined to sign a message.