Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AggregateSignatures ¶
AggregateSignatures takes a slice of PublicKeys and their corresponding signatures to create an aggregate signature
func NewKey ¶
func NewKey(reader io.Reader) (*PrivateKey, *PublicKey)
NewKey creates a bn256 private and public key pair.
func NewKeyFromSeed ¶
func NewKeyFromSeed(seed []byte) (*PrivateKey, *PublicKey)
NewKeyFromSeed creates a bn256 private and public key pair from the given seed. Seed must be 32 bytes; If more, seed is truncated.
Types ¶
type PrivateKey ¶
type PrivateKey struct {
// contains filtered or unexported fields
}
PrivateKey represents a bn256 private key
func (*PrivateKey) Bytes ¶
func (sk *PrivateKey) Bytes() []byte
Bytes returns the binary form of the key
func (*PrivateKey) Public ¶
func (sk *PrivateKey) Public() *PublicKey
Public return the corresponding public key
type PublicKey ¶
type PublicKey struct {
// contains filtered or unexported fields
}
PublicKey represents a bn256 public key
func AggregatePublicKeys ¶
AggregatePublicKeys takes a slice of PublicKeys to create an aggregate public key
func BytesToPublicKey ¶
BytesToPublicKey converts the byte slice of a marshaled public key to a PublicKey object
Click to show internal directories.
Click to hide internal directories.