Nip01Event class
- Implementers
Constructors
- Nip01Event.new({required String pubKey, required int kind, required List tags, required String content, int createdAt = 0})
- Creates a new Nostr event.
- Nip01Event.fromJson(Map data)
-
factory
Properties
- content ↔ String
-
Event content.
getter/setter pair
- createdAt ↔ int
-
Event creation timestamp in Unix time.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setteroverride
- id ↔ String
-
The event ID is a 32-byte SHA256 hash of the serialised event data.
getter/setter pair
- isIdValid → bool
-
no setter
- kind → int
-
Event kind identifier (e.g. text_note, set_metadata, etc).
final
-
pTags
→ List<
String> -
no setter
- pubKey → String
-
The event author's public key.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sig ↔ String
-
64-byte Schnorr signature of Nip01Event.id.
getter/setter pair
-
sources
↔ List<
String> -
Relay that an event was received from
getter/setter pair
-
A JSON array of event tags.
getter/setter pair
-
tTags
→ List<
String> -
no setter
- validSig ↔ bool?
-
getter/setter pair
Methods
-
getDtag(
) → String? -
getEId(
) → String? -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
sign(
String privateKey) → void -
toJson(
) → Map< String, dynamic> - Returns the Event object as a JSON object
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override
Constants
- TEXT_NODE_KIND → const int