publicKeyFromPrivateSign function

Uint8List publicKeyFromPrivateSign(
  1. Uint8List privateKey
)

Implementation

Uint8List publicKeyFromPrivateSign(Uint8List privateKey) {
  var privateKeyNum = bytesToInt(privateKey);
  var p = ECCurve_secp256k1().G * privateKeyNum;
  return p.getEncoded(false).sublist(1);
}