Versions in this module Expand all Collapse all v1 v1.0.0 Jul 19, 2021 Changes in this version + func Verify(sig *Signature, msg []byte, pubk *PublicKey) bool + func Verify1ForN(sig *Signature, pubk *PublicKey, msgs ...[]byte) bool + func VerifyGroupMessage(sig *Signature, msgs ...*VerifiableMessage) bool + func VerifyNFor1(sig *Signature, msg []byte, pubks ...*PublicKey) bool + type HashPoint struct + func (hp *HashPoint) Marshal() []byte + func (hp *HashPoint) Unmarshal(in []byte) error + func (hpt *HashPoint) Aggregate(hpts ...*HashPoint) *HashPoint + func (hpt *HashPoint) Sum(msg []byte) *HashPoint + func (hpt *HashPoint) SumAggregate(msgs ...[]byte) *HashPoint + type KeyPair struct + func GenerateKey() *KeyPair + func KeyFromSeed(seed []byte) *KeyPair + func (kp *KeyPair) Marshal() []byte + func (kp *KeyPair) MarshalPrivate() []byte + func (kp *KeyPair) MarshalPublic() []byte + func (kp *KeyPair) Private() *PrivateKey + func (kp *KeyPair) Public() *PublicKey + func (kp *KeyPair) Unmarshal(in []byte) error + func (kp *KeyPair) UnmarshalPrivate(in []byte) error + func (kp *KeyPair) UnmarshalPublic(in []byte) error + type PrivateKey struct + func (pvtk *PrivateKey) Copy() *PrivateKey + func (pvtk *PrivateKey) IsNull() bool + func (pvtk *PrivateKey) Marshal() []byte + func (pvtk *PrivateKey) Null() *PrivateKey + func (pvtk *PrivateKey) Public() *PublicKey + func (pvtk *PrivateKey) Unmarshal(in []byte) error + type PublicKey struct + func Private2Public(pvtk *PrivateKey) *PublicKey + func (pubk *PublicKey) Aggregate(pubks ...*PublicKey) *PublicKey + func (pubk *PublicKey) Copy() *PublicKey + func (pubk *PublicKey) IsNull() bool + func (pubk *PublicKey) Marshal() []byte + func (pubk *PublicKey) Null() *PublicKey + func (pubk *PublicKey) Unmarshal(in []byte) error + type Signature struct + func Sign(msg []byte, pvtk *PrivateKey) *Signature + func (sig *Signature) Aggregate(sigs ...*Signature) *Signature + func (sig *Signature) Marshal() []byte + func (sig *Signature) Sign(hpt *HashPoint, pvtk *PrivateKey) *Signature + func (sig *Signature) Unmarshal(in []byte) error + type VerifiableMessage struct + func NewVerifiableMessage(msg []byte, pubk *PublicKey) *VerifiableMessage