|
Nostrduino
|
#include <NostrEvent.h>
Public Member Functions | |
| UnsignedNostrEvent () | |
| UnsignedNostrEvent (unsigned int kind, NostrString content, unsigned long int created_at) | |
| SignedNostrEvent | sign (NostrString privateKeyHex) |
| void | setCreatedAt (unsigned long int created_at) |
| void | setKind (unsigned int kind) |
| void | setContent (NostrString content) |
Public Member Functions inherited from nostr::NostrEvent | |
| NostrEvent () | |
| virtual | ~NostrEvent () |
| unsigned long int | getCreatedAt () const |
| unsigned int | getKind () const |
| NostrEventTags * | getTags () |
| const NostrEventTags * | getTags () const |
| NostrString | getContent () const |
Additional Inherited Members | |
Protected Member Functions inherited from nostr::NostrEvent | |
| NostrEvent (unsigned int kind, NostrEventTags tags, NostrString content, unsigned long int created_at) | |
Protected Attributes inherited from nostr::NostrEvent | |
| unsigned int | kind |
| NostrEventTags | tags |
| NostrString | content |
| unsigned long int | created_at |
An unsigned NostrEvent. This is a support class used to create a new nostr event. When the event is ready to be sent, it should be signed with the sign method, the result is a SignedNostrEvent that can be sent to the relay.
|
inline |
|
inline |
|
inline |
| SignedNostrEvent UnsignedNostrEvent::sign | ( | NostrString | privateKeyHex | ) |
Sign the event with a private key