Documentation ¶
Index ¶
- type PublicKey
- func (p *PublicKey) Aggregate(other *PublicKey)
- func (p *PublicKey) Copy() *PublicKey
- func (p *PublicKey) DecodeRLP(stream *rlp.Stream) error
- func (p *PublicKey) EncodeRLP(w io.Writer) error
- func (p *PublicKey) Equals(other *PublicKey) bool
- func (p *PublicKey) IsEmpty() bool
- func (p *PublicKey) String() string
- func (p *PublicKey) ToBytes() common.Bytes
- type SecretKey
- type Signature
- func (s *Signature) Aggregate(other *Signature)
- func (s *Signature) Copy() *Signature
- func (s *Signature) DecodeRLP(stream *rlp.Stream) error
- func (s *Signature) EncodeRLP(w io.Writer) error
- func (s *Signature) Equals(other *Signature) bool
- func (s *Signature) IsEmpty() bool
- func (s *Signature) PopVerify(p *PublicKey) bool
- func (s *Signature) String() string
- func (s *Signature) ToBytes() common.Bytes
- func (s *Signature) Verify(m []byte, p *PublicKey) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PublicKey ¶
type PublicKey struct {
// contains filtered or unexported fields
}
PublicKey is a public key.
func AggregatePublicKeys ¶
AggregatePublicKeys adds public keys together.
func AggregatePublicKeysVec ¶
AggregatePublicKeysVec aggregates public keys based on given vector.
func NewAggregatePubkey ¶
func NewAggregatePubkey() *PublicKey
NewAggregatePubkey creates a blank public key.
func PublicKeyFromBytes ¶
PublicKeyFromBytes creates a BLS public key from a byte slice.
type SecretKey ¶
type SecretKey struct {
// contains filtered or unexported fields
}
SecretKey represents a BLS private key.
func SecretKeyFromBytes ¶
SecretKeyFromBytes creates a BLS private key from a byte slice.
type Signature ¶
type Signature struct {
// contains filtered or unexported fields
}
Signature is a message signature.
func AggregateSignatures ¶
AggregateSignatures adds up all of the signatures.
func AggregateSignaturesVec ¶
AggregateSignaturesVec aggregates signatures based on given vector.
func NewAggregateSignature ¶
func NewAggregateSignature() *Signature
NewAggregateSignature creates a blank aggregate signature.
func SignatureFromBytes ¶
SignatureFromBytes creates a BLS signature from a byte slice.