pub method
Generates pubkey bytes of the private key
@param mode The compress mode of pubkey bytes, 0|1|2 represent uncompress|compress|mix
Implementation
static Future<Uint8List> pub(Uint8List pri, Curve curve, int mode) async {
var res = await invokeCrypto('ecdsa.pub', [pri, curve.label, mode]);
return res as Uint8List;
}