ecPublicKey property

ECPublicKey get ecPublicKey

Returns the associated publicKey as an ECPublicKey instance.

Implementation

ECPublicKey get ecPublicKey {
  final secp256k1 = ECCSecp256k1();
  final point = secp256k1.G;
  final curvePoint = point * _ecPrivateKey.d;
  return ECPublicKey(curvePoint, ECCSecp256k1());
}