generatePublicKey static method
ecmult and then generate public key
Implementation
static List<int>? generatePublicKey(List<int> scalarBytes) {
Secp256k1Scalar a = Secp256k1Scalar();
Secp256k1.secp256k1ScalarSetB32(a, scalarBytes);
Secp256k1Gej res1 = Secp256k1Gej();
Secp256k1.secp256k1ECmultConst(res1, Secp256k1Const.G, a);
Secp256k1Ge mid1 = Secp256k1Ge();
Secp256k1.secp256k1GeSetGej(mid1, res1);
return secp256k1ECkeyPubkeySerialize(mid1, true);
}