signAsExtension method

Future<Map?> signAsExtension(
  1. String password,
  2. Map args
)

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;
}