toAMAXPublicKey method

AMAXPublicKey toAMAXPublicKey()

Get the public key string from this private key

Implementation

AMAXPublicKey toAMAXPublicKey() {
  BigInt privateKeyNum = decodeBigIntWithSign(1, this.d!);
  ECPoint? ecPoint = AMAXKey.secp256k1.G * privateKeyNum;

  return AMAXPublicKey.fromPoint(ecPoint);
}