Nostrduino
Loading...
Searching...
No Matches
Public Member Functions
nostr::UnsignedNostrEvent Class Reference

#include <NostrEvent.h>

Inheritance diagram for nostr::UnsignedNostrEvent:
nostr::NostrEvent

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
 
NostrEventTagsgetTags ()
 
const NostrEventTagsgetTags () 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
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ UnsignedNostrEvent() [1/2]

nostr::UnsignedNostrEvent::UnsignedNostrEvent ( )
inline

◆ UnsignedNostrEvent() [2/2]

nostr::UnsignedNostrEvent::UnsignedNostrEvent ( unsigned int  kind,
NostrString  content,
unsigned long int  created_at 
)
inline

Member Function Documentation

◆ setContent()

void nostr::UnsignedNostrEvent::setContent ( NostrString  content)
inline

◆ setCreatedAt()

void nostr::UnsignedNostrEvent::setCreatedAt ( unsigned long int  created_at)
inline

◆ setKind()

void nostr::UnsignedNostrEvent::setKind ( unsigned int  kind)
inline

◆ sign()

SignedNostrEvent UnsignedNostrEvent::sign ( NostrString  privateKeyHex)

Sign the event with a private key


The documentation for this class was generated from the following files: