toEOSPublicKey method
Get the public key string from this private key
Implementation
EOSPublicKey toEOSPublicKey() {
BigInt privateKeyNum = decodeBigIntWithSign(1, this.d!);
ECPoint? ecPoint = EOSKey.secp256k1.G * privateKeyNum;
return EOSPublicKey.fromPoint(ecPoint);
}