blst

package
v0.0.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 18, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PrivateKey

type PrivateKey blst.SecretKey

For minimal-signature-size operations

func GenerateKey

func GenerateKey() *PrivateKey

func (*PrivateKey) Bytes

func (k *PrivateKey) Bytes() []byte

func (*PrivateKey) FromBytes

func (k *PrivateKey) FromBytes(bts []byte) error

func (*PrivateKey) MarshalJSON

func (k *PrivateKey) MarshalJSON() ([]byte, error)

func (*PrivateKey) PublicKey

func (k *PrivateKey) PublicKey() *PublicKey

func (*PrivateKey) Sign

func (k *PrivateKey) Sign(msg []byte) *Signature

func (*PrivateKey) String

func (k *PrivateKey) String() string

func (*PrivateKey) UnmarshalJSON

func (k *PrivateKey) UnmarshalJSON(b []byte) error

type PublicKey

type PublicKey blst.P2Affine

func AggregatePublicKeys

func AggregatePublicKeys(pubs []*PublicKey) *PublicKey

func (*PublicKey) Bytes

func (k *PublicKey) Bytes() []byte

func (*PublicKey) FromBytes

func (k *PublicKey) FromBytes(bts []byte) error

func (*PublicKey) MarshalJSON

func (k *PublicKey) MarshalJSON() ([]byte, error)

func (*PublicKey) String

func (k *PublicKey) String() string

func (*PublicKey) UnmarshalJSON

func (k *PublicKey) UnmarshalJSON(b []byte) error

func (*PublicKey) Verify

func (k *PublicKey) Verify(msg []byte, s *Signature) bool

type Signature

type Signature blst.P1Affine

func AggregateSignatures

func AggregateSignatures(sigs []*Signature) *Signature

func (*Signature) Bytes

func (s *Signature) Bytes() []byte

func (*Signature) FromBytes

func (s *Signature) FromBytes(bts []byte) error

func (*Signature) MarshalBinary added in v0.0.2

func (s *Signature) MarshalBinary() (data []byte, err error)

func (*Signature) MarshalJSON

func (s *Signature) MarshalJSON() ([]byte, error)

func (*Signature) String

func (s *Signature) String() string

func (*Signature) UnmarshalBinary added in v0.0.2

func (s *Signature) UnmarshalBinary(data []byte) error

func (*Signature) UnmarshalJSON

func (s *Signature) UnmarshalJSON(b []byte) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL