Nostr class

The base class for a Nostr client.

Constructors

Nostr({String privateKey = '', int powDifficulty = 0, bool disableSignatureVerification = false})
Creates a Nostr client.

Properties

disableSignatureVerification bool
final
hashCode int
The hash code for this object.
no setterinherited
pool ↔ RelayPool
getter/setter pair
powDifficulty int
final
privateKey String
The secret key used for event signing.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
recommendServer(String url) Event
Publishes a recommend_server event.
sendContactList(ContactList contacts) Event
Publishes a contact_list event.
sendEvent(Event event) Event
Publishes an arbitrary event.
sendMetaData({String? name, String? about, String? picture}) Event
Publishes a set_metadata event.
sendTextNote(String text, [List tags = const []]) Event
Publishes a text_note event.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited