publicKeyG2 method

  1. @override
BuBytes publicKeyG2(
  1. List<int> sk
)
override

Derives 96-byte compressed G2 public key from 32-byte big-endian sk. Throws on invalid length/scalar.

Implementation

@override
BuBytes publicKeyG2(List<int> sk) {
  return api.publicKeyG2(BuBytes.unsafe(sk)).unwrapOrThrowCryptoError();
}