signEvent method

  1. @override
Future<Map> signEvent(
  1. String currentUser,
  2. String eventJson,
  3. String? id
)
override

Implementation

@override
Future<Map<dynamic, dynamic>> signEvent(
  String currentUser,
  String eventJson,
  String? id,
) async {
  final arguments = {
    "type": "sign_event",
    "current_user": currentUser,
    "uri_data": eventJson,
    "id": id,
  };

  final data = await methodChannel.invokeMethod<Map<dynamic, dynamic>>(
    'nostrsigner',
    arguments,
  );

  return data ?? {};
}