nostr_dart 0.6.4 copy "nostr_dart: ^0.6.4" to clipboard
nostr_dart: ^0.6.4 copied to clipboard

A Nostr protocol client API for building censorship-resistant social network applications in Dart/Flutter.

0.1.0 #

  • Initial version.

0.1.1 #

  • Fixed package import documentation.

0.2.0 #

0.3.0 #

  • Reworked Contact & Nostr class constructors to make instantiating these classes more terse.
  • Added a method to publish arbitrary events [Nostr.sendEvent].

0.4.0 #

  • Refactored relay management and subscription requests into a RelayPool class. This changes the interfaces for adding/removing relays and subscribing/unsubscribing to events.
  • Nostr.pool.add only sends existing subscriptions to a newly added relay if its autoSubscribe parameter is true.
  • Nostr.pool.add allows read/write attributes to be configured for relays with its access parameter.
  • Received events are now accessed via a listener callback provided to Nostr.pool.subscribe. This allows different subscriptions to route events to different event listeners.
  • Nostr.sendTextNote, Nostr.sendMetaData, Nostr.recommendServer, Nostr.sendContactList, Nostr.pool.subscribe, are no longer asynchronous operations. nostr_dart now maintains an asynchronous job queue for each connected relay to sequence relay communications.

0.4.1 #

  • Fixed incorrectly formatted subscription requests.

0.5.0 #

  • Shortened the length of randomly assigned Subscription IDs to an 8-byte hexadecimal string. Some relays were rejecting a 32-byte hexadecimal.
  • Nostr.pool.subscribe is now an asynchronous operation returning a Future that completes when all expected end-of-stored events notices have been received.

0.6.0 #

  • Added support for NIP-11: Relay Information Document. This includes a breaking API change to Nostr.pool.add which now takes a Relay object instead of a URL string and access read/write configuration.
  • Added Nostr.pool.info to get relay information documents. This interface is likely to change.
  • Added an automatic check for NIP-15 and NIP-20 support before connecting to a relay. Relays that don't support these protocol features will be rejected.
  • Added Nostr.pool.isConnected to get relay connection status. This interface is likely to change.

0.6.1 #

  • Fixed subscription requests timing out prematurely.

0.6.2 #

  • Fixed subscription requests timing out after a previous call to Nostr.pool.unsubscribe.

0.6.3 #

  • Received events that fail validation checks are discarded without throwing an exception to improve performance.

0.6.4 #

  • Added an option to the Nostr constructor to disable signature verification as events are received. This is a temporary work-around for inadequate signature verification performance. The default remains for signature verification to be performed. When disabled, the signatures of individual events can still be verified using Event.isSigned.
1
likes
130
pub points
23%
popularity

Publisher

unverified uploader

A Nostr protocol client API for building censorship-resistant social network applications in Dart/Flutter.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

bip340, build_runner, clock, crypto, hex, http, mockito, queue, string_validator, web_socket_channel

More

Packages that depend on nostr_dart