Documentation
¶
Index ¶
- func AggregatePublicKeys(pks []types.PublicKey) (types.PublicKey, error)
- func AggregatePublicKeysFromBytes(bs [][]byte) (types.PublicKey, error)
- func AggregateSignatures(sigs []types.Signature) (types.Signature, error)
- func AggregateSignaturesFromBytes(bs [][]byte) (types.Signature, error)
- func FastAggregateVerify(sig types.Signature, msg []byte, pks []types.PublicKey) bool
- func GenerateKey(ikm []byte) (types.SecretKey, error)
- func MultiplePublicKeysFromBytes(bs [][]byte) ([]types.PublicKey, error)
- func MultipleSignaturesFromBytes(bs [][]byte) ([]types.Signature, error)
- func PopProve(sk types.SecretKey) types.Signature
- func PopVerify(pk types.PublicKey, sig types.Signature) bool
- func PublicKeyFromBytes(b []byte) (types.PublicKey, error)
- func RandKey() (types.SecretKey, error)
- func SecretKeyFromBytes(b []byte) (types.SecretKey, error)
- func Sign(sk types.SecretKey, msg []byte) types.Signature
- func SignatureFromBytes(b []byte) (types.Signature, error)
- func Verify(sig types.Signature, msg []byte, pk types.PublicKey) bool
- func VerifyMultipleSignatures(sigbs [][]byte, msgs [][32]byte, pks []types.PublicKey) (bool, error)
- func VerifySignature(sigb []byte, msg [32]byte, pk types.PublicKey) (bool, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AggregatePublicKeys ¶
AggregatePublicKeys assumes that given public keys has passed the KeyValidate() check i.e. they are not infinite and are on the right subgroup.
PublicKey objects are expected to be returned by SecretKey.PublicKey(), PublicKeyFromBytes() and AggregatePublicKeysFromBytes(), and they all should be valid. Therefore AggregatePublicKeys skips the validatity check.
func AggregateSignatures ¶
AggregateSignatures assumes that given signatures has passed the SigValidate() check i.e. they are on the right subgroup.
Signature objects are expected to be returned by Sign(), SignatureFromBytes() and AggregateSignaturesFromBytes(), and they all should be valid. Therefore AggregateSignatures skips the validatity check.
func FastAggregateVerify ¶
Types ¶
This section is empty.