getPublicFromPrivateKey function

Uint8List? getPublicFromPrivateKey(
  1. Uint8List privateKey, [
  2. bool compress = false
])

Implementation

Uint8List? getPublicFromPrivateKey(Uint8List privateKey,
    [bool compress = false]) {
  BigInt privateKeyNum = privateKey.toBn(endian: Endian.big);

  return getPublicFromPrivateKeyBigInt(privateKeyNum, compress);
}