Versions in this module Expand all Collapse all v1 v1.11.0 Oct 31, 2023 Changes in this version + const ProofOfPossessionSize + const ProofOfPossessionVtSize + const PublicKeySize + const PublicKeyVtSize + const SecretKeyShareSize + const SecretKeySize + const SignatureSize + const SignatureVtSize + type BlsScheme interface + AggregateVerify func(pks []*PublicKey, msgs [][]byte, sigs []*Signature) bool + Keygen func() (*PublicKey, *SecretKey, error) + KeygenWithSeed func(ikm []byte) (*PublicKey, *SecretKey, error) + Sign func(sk *SecretKey, msg []byte) (*Signature, error) + Verify func(pk *PublicKey, msg []byte, sig *Signature) bool + type BlsSchemeVt interface + AggregateVerify func(pks []*PublicKeyVt, msgs [][]byte, sigs []*SignatureVt) bool + Keygen func() (*PublicKeyVt, *SecretKey, error) + KeygenWithSeed func(ikm []byte) (*PublicKeyVt, *SecretKey, error) + Sign func(sk *SecretKey, msg []byte) (*SignatureVt, error) + Verify func(pk *PublicKeyVt, msg []byte, sig *SignatureVt) bool + type MultiPublicKey struct + func (pk *MultiPublicKey) UnmarshalBinary(data []byte) error + func (pk MultiPublicKey) MarshalBinary() ([]byte, error) + type MultiPublicKeyVt struct + func (pk *MultiPublicKeyVt) MarshalBinary() ([]byte, error) + func (pk *MultiPublicKeyVt) UnmarshalBinary(data []byte) error + type MultiSignature struct + func (sig *MultiSignature) UnmarshalBinary(data []byte) error + func (sig MultiSignature) MarshalBinary() ([]byte, error) + type MultiSignatureVt struct + func (sig *MultiSignatureVt) MarshalBinary() ([]byte, error) + func (sig *MultiSignatureVt) UnmarshalBinary(data []byte) error + type PartialSignature struct + Identifier byte + Signature bls12381.G2 + type PartialSignatureVt struct + type ProofOfPossession struct + func (pop *ProofOfPossession) UnmarshalBinary(data []byte) error + func (pop ProofOfPossession) MarshalBinary() ([]byte, error) + type ProofOfPossessionVt struct + func (pop *ProofOfPossessionVt) MarshalBinary() ([]byte, error) + func (pop *ProofOfPossessionVt) UnmarshalBinary(data []byte) error + type PublicKey struct + func (pk *PublicKey) UnmarshalBinary(data []byte) error + func (pk PublicKey) MarshalBinary() ([]byte, error) + type PublicKeyVt struct + func (pk *PublicKeyVt) MarshalBinary() ([]byte, error) + func (pk *PublicKeyVt) UnmarshalBinary(data []byte) error + type SecretKey struct + func (sk *SecretKey) GetPublicKeyVt() (*PublicKeyVt, error) + func (sk *SecretKey) UnmarshalBinary(data []byte) error + func (sk SecretKey) Generate(ikm []byte) (*SecretKey, error) + func (sk SecretKey) GetPublicKey() (*PublicKey, error) + func (sk SecretKey) MarshalBinary() ([]byte, error) + type SecretKeyShare struct + func (sks *SecretKeyShare) UnmarshalBinary(data []byte) error + func (sks SecretKeyShare) MarshalBinary() ([]byte, error) + type SigAug struct + func NewSigAug() *SigAug + func NewSigAugWithDst(signDst string) *SigAug + func (b SigAug) AggregateVerify(pks []*PublicKey, msgs [][]byte, sigs []*Signature) (bool, error) + func (b SigAug) CombineSignatures(sigs ...*PartialSignature) (*Signature, error) + func (b SigAug) Keygen() (*PublicKey, *SecretKey, error) + func (b SigAug) KeygenWithSeed(ikm []byte) (*PublicKey, *SecretKey, error) + func (b SigAug) PartialSign(sks *SecretKeyShare, pk *PublicKey, msg []byte) (*PartialSignature, error) + func (b SigAug) Sign(sk *SecretKey, msg []byte) (*Signature, error) + func (b SigAug) ThresholdKeygen(threshold, total uint) (*PublicKey, []*SecretKeyShare, error) + func (b SigAug) ThresholdKeygenWithSeed(ikm []byte, threshold, total uint) (*PublicKey, []*SecretKeyShare, error) + func (b SigAug) Verify(pk *PublicKey, msg []byte, sig *Signature) (bool, error) + type SigAugVt struct + func NewSigAugVt() *SigAugVt + func NewSigAugVtWithDst(signDst string) *SigAugVt + func (b SigAugVt) AggregateVerify(pks []*PublicKeyVt, msgs [][]byte, sigs []*SignatureVt) (bool, error) + func (b SigAugVt) CombineSignatures(sigs ...*PartialSignatureVt) (*SignatureVt, error) + func (b SigAugVt) Keygen() (*PublicKeyVt, *SecretKey, error) + func (b SigAugVt) KeygenWithSeed(ikm []byte) (*PublicKeyVt, *SecretKey, error) + func (b SigAugVt) PartialSign(sks *SecretKeyShare, pk *PublicKeyVt, msg []byte) (*PartialSignatureVt, error) + func (b SigAugVt) Sign(sk *SecretKey, msg []byte) (*SignatureVt, error) + func (b SigAugVt) ThresholdKeygen(threshold, total uint) (*PublicKeyVt, []*SecretKeyShare, error) + func (b SigAugVt) ThresholdKeygenWithSeed(ikm []byte, threshold, total uint) (*PublicKeyVt, []*SecretKeyShare, error) + func (b SigAugVt) Verify(pk *PublicKeyVt, msg []byte, sig *SignatureVt) (bool, error) + type SigBasic struct + func NewSigBasic() *SigBasic + func NewSigBasicWithDst(signDst string) *SigBasic + func (b SigBasic) AggregateVerify(pks []*PublicKey, msgs [][]byte, sigs []*Signature) (bool, error) + func (b SigBasic) CombineSignatures(sigs ...*PartialSignature) (*Signature, error) + func (b SigBasic) Keygen() (*PublicKey, *SecretKey, error) + func (b SigBasic) KeygenWithSeed(ikm []byte) (*PublicKey, *SecretKey, error) + func (b SigBasic) PartialSign(sks *SecretKeyShare, msg []byte) (*PartialSignature, error) + func (b SigBasic) Sign(sk *SecretKey, msg []byte) (*Signature, error) + func (b SigBasic) ThresholdKeygen(threshold, total uint) (*PublicKey, []*SecretKeyShare, error) + func (b SigBasic) ThresholdKeygenWithSeed(ikm []byte, threshold, total uint) (*PublicKey, []*SecretKeyShare, error) + func (b SigBasic) Verify(pk *PublicKey, msg []byte, sig *Signature) (bool, error) + type SigBasicVt struct + func NewSigBasicVt() *SigBasicVt + func NewSigBasicVtWithDst(signDst string) *SigBasicVt + func (b SigBasicVt) AggregateVerify(pks []*PublicKeyVt, msgs [][]byte, sigs []*SignatureVt) (bool, error) + func (b SigBasicVt) CombineSignatures(sigs ...*PartialSignatureVt) (*SignatureVt, error) + func (b SigBasicVt) Keygen() (*PublicKeyVt, *SecretKey, error) + func (b SigBasicVt) KeygenWithSeed(ikm []byte) (*PublicKeyVt, *SecretKey, error) + func (b SigBasicVt) PartialSign(sks *SecretKeyShare, msg []byte) (*PartialSignatureVt, error) + func (b SigBasicVt) Sign(sk *SecretKey, msg []byte) (*SignatureVt, error) + func (b SigBasicVt) ThresholdKeygen(threshold, total uint) (*PublicKeyVt, []*SecretKeyShare, error) + func (b SigBasicVt) ThresholdKeygenWithSeed(ikm []byte, threshold, total uint) (*PublicKeyVt, []*SecretKeyShare, error) + func (b SigBasicVt) Verify(pk *PublicKeyVt, msg []byte, sig *SignatureVt) (bool, error) + type SigEth2 = SigPop + func NewSigEth2() *SigEth2 + type SigEth2Vt = SigPopVt + func NewSigEth2Vt() *SigEth2Vt + type SigPop struct + func NewSigPop() *SigPop + func NewSigPopWithDst(signDst, popDst string) (*SigPop, error) + func (b SigPop) AggregatePublicKeys(pks ...*PublicKey) (*MultiPublicKey, error) + func (b SigPop) AggregateSignatures(sigs ...*Signature) (*MultiSignature, error) + func (b SigPop) AggregateVerify(pks []*PublicKey, msgs [][]byte, sigs []*Signature) (bool, error) + func (b SigPop) CombineSignatures(sigs ...*PartialSignature) (*Signature, error) + func (b SigPop) FastAggregateVerify(pks []*PublicKey, msg []byte, asig *Signature) (bool, error) + func (b SigPop) FastAggregateVerifyConstituent(pks []*PublicKey, msg []byte, sigs []*Signature) (bool, error) + func (b SigPop) Keygen() (*PublicKey, *SecretKey, error) + func (b SigPop) KeygenWithSeed(ikm []byte) (*PublicKey, *SecretKey, error) + func (b SigPop) PartialSign(sks *SecretKeyShare, msg []byte) (*PartialSignature, error) + func (b SigPop) PopProve(sk *SecretKey) (*ProofOfPossession, error) + func (b SigPop) PopVerify(pk *PublicKey, pop2 *ProofOfPossession) (bool, error) + func (b SigPop) Sign(sk *SecretKey, msg []byte) (*Signature, error) + func (b SigPop) ThresholdKeygen(threshold, total uint) (*PublicKey, []*SecretKeyShare, error) + func (b SigPop) ThresholdKeygenWithSeed(ikm []byte, threshold, total uint) (*PublicKey, []*SecretKeyShare, error) + func (b SigPop) Verify(pk *PublicKey, msg []byte, sig *Signature) (bool, error) + func (b SigPop) VerifyMultiSignature(pk *MultiPublicKey, msg []byte, sig *MultiSignature) (bool, error) + type SigPopVt struct + func NewSigPopVt() *SigPopVt + func NewSigPopVtWithDst(signDst, popDst string) (*SigPopVt, error) + func (b SigPopVt) AggregatePublicKeys(pks ...*PublicKeyVt) (*MultiPublicKeyVt, error) + func (b SigPopVt) AggregateSignatures(sigs ...*SignatureVt) (*MultiSignatureVt, error) + func (b SigPopVt) AggregateVerify(pks []*PublicKeyVt, msgs [][]byte, sigs []*SignatureVt) (bool, error) + func (b SigPopVt) CombineSignatures(sigs ...*PartialSignatureVt) (*SignatureVt, error) + func (b SigPopVt) FastAggregateVerify(pks []*PublicKeyVt, msg []byte, asig *SignatureVt) (bool, error) + func (b SigPopVt) FastAggregateVerifyConstituent(pks []*PublicKeyVt, msg []byte, sigs []*SignatureVt) (bool, error) + func (b SigPopVt) Keygen() (*PublicKeyVt, *SecretKey, error) + func (b SigPopVt) KeygenWithSeed(ikm []byte) (*PublicKeyVt, *SecretKey, error) + func (b SigPopVt) PartialSign(sks *SecretKeyShare, msg []byte) (*PartialSignatureVt, error) + func (b SigPopVt) PopProve(sk *SecretKey) (*ProofOfPossessionVt, error) + func (b SigPopVt) PopVerify(pk *PublicKeyVt, pop1 *ProofOfPossessionVt) (bool, error) + func (b SigPopVt) Sign(sk *SecretKey, msg []byte) (*SignatureVt, error) + func (b SigPopVt) ThresholdKeygen(threshold, total uint) (*PublicKeyVt, []*SecretKeyShare, error) + func (b SigPopVt) ThresholdKeygenWithSeed(ikm []byte, threshold, total uint) (*PublicKeyVt, []*SecretKeyShare, error) + func (b SigPopVt) Verify(pk *PublicKeyVt, msg []byte, sig *SignatureVt) (bool, error) + func (b SigPopVt) VerifyMultiSignature(pk *MultiPublicKeyVt, msg []byte, sig *MultiSignatureVt) (bool, error) + type Signature struct + Value bls12381.G2 + func (sig *Signature) UnmarshalBinary(data []byte) error + func (sig Signature) MarshalBinary() ([]byte, error) + type SignatureVt struct + func (sig *SignatureVt) MarshalBinary() ([]byte, error) + func (sig *SignatureVt) UnmarshalBinary(data []byte) error