Sign() digitally signs a message and returns the signature output
(msg []byte)
| 83 | |
| 84 | // Sign() digitally signs a message and returns the signature output |
| 85 | func (b *BLS12381PrivateKey) Sign(msg []byte) []byte { |
| 86 | bz, _ := b.scheme.Sign(b.Scalar, msg) |
| 87 | return bz |
| 88 | } |
| 89 | |
| 90 | // PublicKey() returns the individual public key that pairs with this BLS private key |
| 91 | // for basic signature verification |