prvToPub static method
get Account ID from a private key
Implementation
static String prvToPub(String prvkey) {
var prvHex = lyraDec(prvkey);
var d = BigInt.parse('+' + prvHex, radix: 16);
var curve = ECCurve_secp256r1();
var q = curve.G * d;
var pubKey = ECPublicKey(q, curve);
var pubKeyBytes = pubKey.Q!.getEncoded(false);
return lyraEncPub(pubKeyBytes);
}