NostrEvent class abstract

This represents a low level Nostr event that requires setting all fields manually, which requires you to doo all encodings... You can use NostrEvent.fromPartialData to create an event with less fields and lower complexity..

Implementers

Constructors

NostrEvent()

Properties

hashCode int
The hash code for this object.
no setterinherited
props List<Object?>
The list of properties that will be used to determine whether two instances are equal.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
stringify bool?
If set to true, the toString method will be overridden to output this instance's props.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

canBeDeserialized(String dataFromRelay) bool
Wether the given dataFromRelay can be deserialized into a ReceivedNostrEvent.
deleteEvent({required NostrKeyPairs keyPairs, required List<String> eventIdsToBeDeleted, String reasonOfDeletion = "", DateTime? createdAt}) SentNostrEvent
Creates a new NostrEvent with the given content.
fromPartialData({required int kind, required String content, required NostrKeyPairs keyPairs, List<List<String>>? tags, DateTime? createdAt, String? ots}) SentNostrEvent
This requires only to set the fields which can be used & showed to the user directly.
getEventId({required int kind, required String content, required DateTime createdAt, required List tags, required String pubkey}) String
Creates the id of an event, based on Nostr specs.