rust_bridge/api/event_verifier library

Functions

hashEventData({required String pubkey, required BigInt createdAt, required int kind, required List<List<String>> tags, required String content}) Future<String>
  • hashes the given params, in nostr this is the id
  • return hash / nostrId
  • verifyNostrEvent({required String eventIdHex, required String pubKeyHex, required BigInt createdAt, required int kind, required List<List<String>> tags, required String content, required String signatureHex}) Future<bool>
    verifySchnorrSignature({required String pubKeyHex, required String eventIdHex, required String signatureHex}) Future<bool>