Documentation ¶
Index ¶
- func Aggregate(partialSigs []*bls_sig.PartialSignature) (*bls_sig.Signature, error)
- func PartialSign(sks *bls_sig.SecretKeyShare, msg []byte) (*bls_sig.PartialSignature, error)
- func Sign(sk *bls_sig.SecretKey, msg []byte) (*bls_sig.Signature, error)
- func Verify(pk *bls_sig.PublicKey, msg []byte, sig *bls_sig.Signature) (bool, error)
- func VerifyAndAggregate(tss TSS, partialSigs []*bls_sig.PartialSignature, msg []byte) (*bls_sig.Signature, []byte, error)
- type TSS
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Aggregate ¶
func Aggregate(partialSigs []*bls_sig.PartialSignature) (*bls_sig.Signature, error)
Aggregate returns an aggregated signature.
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.
func VerifyAndAggregate ¶
func VerifyAndAggregate(tss TSS, partialSigs []*bls_sig.PartialSignature, msg []byte) (*bls_sig.Signature, []byte, error)
VerifyAndAggregate verifies all partial signatures against a message and aggregates them. It returns the aggregated signature and slice of valid partial signature identifiers.
Types ¶
type TSS ¶
type TSS struct {
// contains filtered or unexported fields
}
TSS (threshold signing scheme) wraps PubKey (PublicKey), Verifiers (the public shares corresponding to each secret share) and threshold (number of shares).
func GenerateTSS ¶
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.
func (TSS) PublicShare ¶
PublicShare returns a share's public key by share index (identifier).
func (TSS) Threshold ¶
Threshold returns the minimum number of partial signatures required to aggregate the threshold signature.
func (TSS) Verifier ¶
func (t TSS) Verifier() *share.FeldmanVerifier
Verifier returns the feldman verifier containing the public shares of the threshold signature scheme.