hashEventData function

Future<String> hashEventData({
  1. required String pubkey,
  2. required BigInt createdAt,
  3. required int kind,
  4. required List<List<String>> tags,
  5. required String content,
})
  • hashes the given params, in nostr this is the id
  • return hash / nostrId

Implementation

Future<String> hashEventData(
        {required String pubkey,
        required BigInt createdAt,
        required int kind,
        required List<List<String>> tags,
        required String content}) =>
    RustLib.instance.api.crateApiEventVerifierHashEventData(
        pubkey: pubkey,
        createdAt: createdAt,
        kind: kind,
        tags: tags,
        content: content);