PublicKey() returns the individual public key that pairs with this BLS private key for basic signature verification
()
| 90 | // PublicKey() returns the individual public key that pairs with this BLS private key |
| 91 | // for basic signature verification |
| 92 | func (b *BLS12381PrivateKey) PublicKey() PublicKeyI { |
| 93 | suite := newBLSSuite() |
| 94 | public := suite.G1().Point().Mul(b.Scalar, suite.G1().Point().Base()) |
| 95 | return NewBLS12381PublicKey(public) |
| 96 | } |
| 97 | |
| 98 | // Equals() compares two private key objects and returns if they are equal |
| 99 | func (b *BLS12381PrivateKey) Equals(i PrivateKeyI) bool { |