signAsExtension method
Implementation
Future<Map?> signAsExtension(String password, Map args) async {
final String call = args['msgType'] == 'pub(bytes.sign)'
? 'signBytesAsExtension'
: 'signTxAsExtension';
final res = await serviceRoot.webView!.evalJavascript(
'keyring.$call("$password", ${jsonEncode(args['request'])})',
allowRepeat: true,
);
return res;
}