generateKey method
Implementation
@override
Future<String> generateKey({String? address}) async {
final String? publicKeyBase64 = await methodChannel.invokeMethod<String>(
'generateKey',
<String, Object?>{'address': address},
);
if (publicKeyBase64 == null || publicKeyBase64.isEmpty) {
throw PlatformException(
code: 'null-public-key',
message: 'Native signer returned an empty public key.',
);
}
return publicKeyBase64;
}