recover static method

Future<MultiKeypair> recover(
  1. List<MultiKeypair> keys,
  2. Map<String, dynamic> aux
)

Implementation

static Future<MultiKeypair> recover(
    List<MultiKeypair> keys, Map<String, dynamic> aux) async {
  final params = {
    'keypairs': [for (final k in keys) k.toMap()],
    'recover_aux': [aux]
  };
  final result = await compute(_multiRecover, jsonEncode(params));
  final key = Response.fromJson(result).handleResponse();
  return MultiKeypair.fromMap(jsonDecode(key)[0]);
}