signAsExtension method

Future<ExtensionSignResult?> signAsExtension(
  1. String password,
  2. SignAsExtensionParam param
)

Open a new webView for a DApp, sign extrinsic or msg for the DApp.

Implementation

Future<ExtensionSignResult?> signAsExtension(
    String password, SignAsExtensionParam param) async {
  final signature = await service!.signAsExtension(password, param.toJson());
  if (signature == null) {
    return null;
  }
  final ExtensionSignResult res = ExtensionSignResult();
  res.id = param.id;
  res.signature = signature['signature'];
  return res;
}