Versions in this module Expand all Collapse all v0 v0.10.1 Apr 2, 2023 v0.10.0 Apr 2, 2023 Changes in this version + func HashToInt(hash []byte) *big.Int + func RecoverP(v uint, r *big.Int) (*bn254.G1Affine, error) + type PrivateKey struct + PublicKey PublicKey + func GenerateKey(rand io.Reader) (*PrivateKey, error) + func (privKey *PrivateKey) Bytes() []byte + func (privKey *PrivateKey) Public() signature.PublicKey + func (privKey *PrivateKey) SetBytes(buf []byte) (int, error) + func (privKey *PrivateKey) Sign(message []byte, hFunc hash.Hash) ([]byte, error) + func (privKey *PrivateKey) SignForRecover(message []byte, hFunc hash.Hash) (v uint, r, s *big.Int, err error) + type PublicKey struct + A bn254.G1Affine + func (pk *PublicKey) Bytes() []byte + func (pk *PublicKey) RecoverFrom(msg []byte, v uint, r, s *big.Int) error + func (pk *PublicKey) SetBytes(buf []byte) (int, error) + func (pub *PublicKey) Equal(x signature.PublicKey) bool + func (publicKey *PublicKey) Verify(sigBin, message []byte, hFunc hash.Hash) (bool, error) + type Signature struct + R [sizeFr]byte + S [sizeFr]byte + func (sig *Signature) Bytes() []byte + func (sig *Signature) SetBytes(buf []byte) (int, error)