Documentation ¶
Overview ¶
Package bls implements BLS signature
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenRandomKeyPair ¶
func GenRandomKeyPair() (*PrivateKey, *PublicKey, error)
GenRandomKeyPair generate a random BLS private/public key pair for client
func Sign ¶
func Sign(key *PrivateKey, msg []byte) *bls12_381_ecc.G1Affine
Sign generate BLS signature using private key sig = sk * hashToG1(m)
Types ¶
Click to show internal directories.
Click to hide internal directories.