dostr_nip01 0.1.1
dostr_nip01: ^0.1.1 copied to clipboard
The NIP-01 Nostr event with its JSON form and its id, the Filter of a REQ, the kind ranges, and the EventVerifier interface that signature verifiers implement.
example/dostr_nip01_example.dart
import 'package:dostr_nip01/dostr_nip01.dart';
void main() {
final event = Nip01Event(
pubkey: 'a' * 64,
kind: Nip01Event.kTextNoteKind,
tags: [
['t', 'nostr'],
],
content: 'hello',
);
print(event.id);
print(event.hasValidId);
print(event.toJsonString());
}