Documentation
¶
Index ¶
- func AggregateVerify(items []*PubDigestPair, sig *Signature, scheme blst.Scheme) error
- func Verify(pub *PublicKey, msg []byte, sig *Signature, scheme blst.Scheme) error
- func VerifyProof(pub *PublicKey, sig *Signature) error
- type PrivateKey
- func (priv *PrivateKey) Bytes() []byte
- func (priv *PrivateKey) Equal(x crypto.PrivateKey) bool
- func (priv *PrivateKey) Prove() *Signature
- func (priv *PrivateKey) Public() crypto.PublicKey
- func (priv *PrivateKey) PublicKey() *PublicKey
- func (priv *PrivateKey) Sign(rand io.Reader, msg []byte, opts crypto.SignerOpts) ([]byte, error)
- type PubDigestPair
- type PublicKey
- type Signature
- func (sig *Signature) AggregateVerify(items []*PubDigestPair, scheme blst.Scheme) error
- func (sig *Signature) Bytes() []byte
- func (sig *Signature) IsValid() error
- func (sig *Signature) String() string
- func (sig *Signature) Verify(pub *PublicKey, msg []byte, scheme blst.Scheme) error
- func (sig *Signature) VerifyProof(pub *PublicKey) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AggregateVerify ¶
func AggregateVerify(items []*PubDigestPair, sig *Signature, scheme blst.Scheme) error
func VerifyProof ¶ added in v1.1.0
Types ¶
type PrivateKey ¶
func GenerateKey ¶
func GenerateKey(rand io.Reader) (*PrivateKey, error)
func GenerateKeyFrom ¶
func GenerateKeyFrom(ikm []byte) (*PrivateKey, error)
func PrivateKeyFromBytes ¶
func PrivateKeyFromBytes(data []byte) (*PrivateKey, error)
func (*PrivateKey) Bytes ¶
func (priv *PrivateKey) Bytes() []byte
func (*PrivateKey) Equal ¶
func (priv *PrivateKey) Equal(x crypto.PrivateKey) bool
func (*PrivateKey) Prove ¶ added in v1.1.0
func (priv *PrivateKey) Prove() *Signature
func (*PrivateKey) Public ¶
func (priv *PrivateKey) Public() crypto.PublicKey
func (*PrivateKey) PublicKey ¶
func (priv *PrivateKey) PublicKey() *PublicKey
func (*PrivateKey) Sign ¶
func (priv *PrivateKey) Sign(rand io.Reader, msg []byte, opts crypto.SignerOpts) ([]byte, error)
type PubDigestPair ¶
type PublicKey ¶
func PublicKeyFromBytes ¶
type Signature ¶
func AggregateSignatures ¶
func Prove ¶ added in v1.1.0
func Prove(priv *PrivateKey) *Signature
func SignatureFromBytes ¶
func (*Signature) AggregateVerify ¶
func (sig *Signature) AggregateVerify(items []*PubDigestPair, scheme blst.Scheme) error
func (*Signature) VerifyProof ¶ added in v1.1.0
Click to show internal directories.
Click to hide internal directories.