sign static method
Implementation
static Future<String> sign(MultiSignParams params) async {
final data = {
'url': params.url,
'get': params.get,
'set': params.set,
'raw_msg': params.rawMsg,
'uid': params.uid ?? uuid(),
'keypairs': [params.keypair.toMap()],
'sign_msgs': params.msgs,
'authority': params.token ?? ''
};
final result = await compute(_multiSign, jsonEncode(data));
final signature = Response.fromJson(result).handleResponse();
return listToHex(List<int>.from(jsonDecode(signature)[0]));
}