6#include "ArduinoJson.h"
12#include <initializer_list>
38 const std::vector<NostrEventTag> &
getTags()
const;
79 std::vector<NostrEventTag>
tags;
140 mutable int verifyState = -1;
#define NostrString
Definition NostrString.h:10
Definition NostrEvent.h:85
virtual ~NostrEvent()
Definition NostrEvent.h:89
unsigned int getKind() const
Definition NostrEvent.h:91
unsigned long int created_at
Definition NostrEvent.h:100
NostrEvent()
Definition NostrEvent.h:87
const NostrEventTags * getTags() const
Definition NostrEvent.h:93
NostrEventTags * getTags()
Definition NostrEvent.h:92
NostrEvent(unsigned int kind, NostrEventTags tags, NostrString content, unsigned long int created_at)
Definition NostrEvent.h:101
unsigned int kind
Definition NostrEvent.h:97
NostrString getContent() const
Definition NostrEvent.h:94
NostrString content
Definition NostrEvent.h:99
NostrEventTags tags
Definition NostrEvent.h:98
unsigned long int getCreatedAt() const
Definition NostrEvent.h:90
Definition NostrPool.h:92
Definition NostrEvent.h:130
SignedNostrEvent()
Definition NostrEvent.h:144
NostrString getSignature() const
Definition NostrEvent.h:154
SignedNostrEvent(NostrString id, NostrString pubkey, unsigned long int created_at, unsigned int kind, NostrEventTags tags, NostrString content, NostrString signature)
Definition NostrEvent.h:161
NostrString getPubkey() const
Definition NostrEvent.h:150
bool verify() const
Definition NostrEvent.cpp:108
static bool parseRelayFrame(JsonArrayConst relayEvent, SignedNostrEvent &out, const NostrLimits &limits=NostrLimits())
Definition NostrEvent.cpp:167
bool isStored() const
Definition NostrEvent.h:148
void toJson(JsonObject doc) const
Definition NostrEvent.cpp:150
void toSendableEvent(JsonArray doc) const
Definition NostrEvent.cpp:161
bool isValid() const
Definition NostrEvent.h:146
NostrString getSubId() const
Definition NostrEvent.h:155
const NostrEventTags * getTags() const
Definition NostrEvent.h:152
NostrString getId() const
Definition NostrEvent.h:147
Definition NostrEvent.h:110
SignedNostrEvent sign(NostrString privateKeyHex)
Definition NostrEvent.cpp:70
void setContent(NostrString content)
Definition NostrEvent.h:123
void setCreatedAt(unsigned long int created_at)
Definition NostrEvent.h:120
void setKind(unsigned int kind)
Definition NostrEvent.h:121
UnsignedNostrEvent(unsigned int kind, NostrString content, unsigned long int created_at)
Definition NostrEvent.h:113
UnsignedNostrEvent()
Definition NostrEvent.h:112
Definition CryptoLock.h:6
struct nostr::s_NostrEventTag NostrEventTag
std::function< void(const String &)> EventSubmissionFailureCallback
Definition NostrEvent.h:16
Definition NostrLimits.h:9
Definition NostrEvent.h:20
std::vector< NostrString > value
Definition NostrEvent.h:22
NostrString key
Definition NostrEvent.h:21