getPublicFromPrivateKeyBigInt function

Uint8List? getPublicFromPrivateKeyBigInt(
  1. BigInt bigint, [
  2. bool compress = false
])

Implementation

Uint8List? getPublicFromPrivateKeyBigInt(
  BigInt bigint, [
  bool compress = false,
]) {
  final ECPoint? p = secp256k1Params.G * bigint;
  if (p != null) {
    return p.getEncoded(compress);
  } else {
    return null;
  }
}