Skip to main content

dostr_nip01 0.1.0 copy "dostr_nip01: ^0.1.0" to clipboard
dostr_nip01: ^0.1.0 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());
}
0
likes
160
points
73
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

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.

Repository (GitHub)
View/report issues

Topics

#nostr #dostr

License

MIT (license)

Dependencies

crypto

More

Packages that depend on dostr_nip01