Documentation ¶
Index ¶
- func CheckG1AndG2DiscreteLogEquality(pointG1 *bn254.G1Affine, pointG2 *bn254.G2Affine) (bool, error)
- func GetG1Generator() *bn254.G1Affine
- func GetG2Generator() *bn254.G2Affine
- func MapToCurve(digest [32]byte) *bn254.G1Affine
- func MulByGeneratorG1(a *fr.Element) *bn254.G1Affine
- func MulByGeneratorG2(a *fr.Element) *bn254.G2Affine
- func VerifySig(sig *bn254.G1Affine, pubkey *bn254.G2Affine, msgBytes [32]byte) (bool, error)
- type G1Point
- func (p *G1Point) Add(p2 *G1Point)
- func (p *G1Point) Clone() *G1Point
- func (p *G1Point) Deserialize(data []byte) (*G1Point, error)
- func (p *G1Point) Hash() [32]byte
- func (p *G1Point) Serialize() []byte
- func (p *G1Point) Sub(p2 *G1Point)
- func (p *G1Point) Verify(pubKey *G2Point, message [32]byte) bool
- func (p *G1Point) VerifyEquivalence(p2 *G2Point) (bool, error)
- type G2Point
- type KeyPair
- type PrivateKey
- type Signature
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetG1Generator ¶
func GetG2Generator ¶
func MapToCurve ¶
Types ¶
type KeyPair ¶
type KeyPair struct { PrivKey *PrivateKey PubKey *G1Point }
func GenRandomBlsKeys ¶
func MakeKeyPair ¶
func MakeKeyPair(sk *PrivateKey) *KeyPair
func MakeKeyPairFromString ¶
func (*KeyPair) GetPubKeyG1 ¶
func (*KeyPair) GetPubKeyG2 ¶
func (*KeyPair) SignHashedToCurveMessage ¶
func (*KeyPair) SignMessage ¶
type PrivateKey ¶
Click to show internal directories.
Click to hide internal directories.