Documentation ¶
Index ¶
- Variables
- type AggregatedKey
- type AggregatedSignature
- type BLSSigner
- type BLSVerifier
- func (verifier *BLSVerifier) AggregatePublicKeys(keys []*PublicKey) *AggregatedKey
- func (verifier *BLSVerifier) AggregateSignatures(signatures []*Signature) *AggregatedSignature
- func (verifier *BLSVerifier) Verify(message Message, signature *Signature, publicKey *PublicKey) (bool, error)
- func (verifier *BLSVerifier) VerifyAggregate(messages []Message, publicKeys []*PublicKey, signature *AggregatedSignature) (bool, error)
- func (verifier *BLSVerifier) VerifyAggregateCommon(message Message, publicKeys []*PublicKey, signature *AggregatedSignature) (bool, error)
- type Domain
- type KeyPair
- type Message
- type PointG1
- type PointG2
- type PublicKey
- type SecretKey
- type Signature
Constants ¶
This section is empty.
Variables ¶
View Source
var Order = bn254.Order
Functions ¶
This section is empty.
Types ¶
type AggregatedKey ¶
type AggregatedKey = PublicKey
type AggregatedSignature ¶
type AggregatedSignature = Signature
type BLSSigner ¶
func NewBLSSigner ¶
type BLSVerifier ¶
type BLSVerifier struct {
Domain []byte
}
func NewBLSVerifier ¶
func NewBLSVerifier(domain Domain) *BLSVerifier
func (*BLSVerifier) AggregatePublicKeys ¶
func (verifier *BLSVerifier) AggregatePublicKeys(keys []*PublicKey) *AggregatedKey
func (*BLSVerifier) AggregateSignatures ¶
func (verifier *BLSVerifier) AggregateSignatures(signatures []*Signature) *AggregatedSignature
func (*BLSVerifier) VerifyAggregate ¶
func (verifier *BLSVerifier) VerifyAggregate(messages []Message, publicKeys []*PublicKey, signature *AggregatedSignature) (bool, error)
func (*BLSVerifier) VerifyAggregateCommon ¶
func (verifier *BLSVerifier) VerifyAggregateCommon(message Message, publicKeys []*PublicKey, signature *AggregatedSignature) (bool, error)
type KeyPair ¶
type KeyPair struct { Public *PublicKey // contains filtered or unexported fields }
func NewKeyPairFromBytes ¶
func NewKeyPairFromSecret ¶
type PublicKey ¶
type PublicKey struct {
// contains filtered or unexported fields
}
func PublicKeyFromBytes ¶
Click to show internal directories.
Click to hide internal directories.