Nostrduino
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | Protected Member Functions | Friends
nostr::SignedNostrEvent Class Reference

#include <NostrEvent.h>

Inheritance diagram for nostr::SignedNostrEvent:
nostr::NostrEvent

Public Member Functions

 SignedNostrEvent ()
 
bool isValid () const
 
NostrString getId () const
 
bool isStored () const
 
NostrString getPubkey () const
 
const NostrEventTagsgetTags () const
 
NostrString getSignature () const
 
NostrString getSubId () const
 
void toSendableEvent (JsonArray doc) const
 
void toJson (JsonObject doc) const
 
bool verify () const
 
- 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
 

Static Public Member Functions

static bool parseRelayFrame (JsonArrayConst relayEvent, SignedNostrEvent &out, const NostrLimits &limits=NostrLimits())
 

Protected Member Functions

 SignedNostrEvent (NostrString id, NostrString pubkey, unsigned long int created_at, unsigned int kind, NostrEventTags tags, NostrString content, NostrString signature)
 
- Protected Member Functions inherited from nostr::NostrEvent
 NostrEvent (unsigned int kind, NostrEventTags tags, NostrString content, unsigned long int created_at)
 

Friends

class UnsignedNostrEvent
 
class NostrPool
 

Additional Inherited Members

- Protected Attributes inherited from nostr::NostrEvent
unsigned int kind
 
NostrEventTags tags
 
NostrString content
 
unsigned long int created_at
 

Detailed Description

A signed NostrEvent as it is received by the client and sent to the relay.

Constructor & Destructor Documentation

◆ SignedNostrEvent() [1/2]

nostr::SignedNostrEvent::SignedNostrEvent ( )
inline

◆ SignedNostrEvent() [2/2]

nostr::SignedNostrEvent::SignedNostrEvent ( NostrString  id,
NostrString  pubkey,
unsigned long int  created_at,
unsigned int  kind,
NostrEventTags  tags,
NostrString  content,
NostrString  signature 
)
inlineprotected

Member Function Documentation

◆ getId()

NostrString nostr::SignedNostrEvent::getId ( ) const
inline

◆ getPubkey()

NostrString nostr::SignedNostrEvent::getPubkey ( ) const
inline

◆ getSignature()

NostrString nostr::SignedNostrEvent::getSignature ( ) const
inline

◆ getSubId()

NostrString nostr::SignedNostrEvent::getSubId ( ) const
inline

◆ getTags()

const NostrEventTags * nostr::SignedNostrEvent::getTags ( ) const
inline

◆ isStored()

bool nostr::SignedNostrEvent::isStored ( ) const
inline

◆ isValid()

bool nostr::SignedNostrEvent::isValid ( ) const
inline

◆ parseRelayFrame()

bool SignedNostrEvent::parseRelayFrame ( JsonArrayConst  relayEvent,
SignedNostrEvent out,
const NostrLimits limits = NostrLimits() 
)
static

◆ toJson()

void SignedNostrEvent::toJson ( JsonObject  doc) const

◆ toSendableEvent()

void SignedNostrEvent::toSendableEvent ( JsonArray  doc) const

◆ verify()

bool SignedNostrEvent::verify ( ) const

Friends And Related Symbol Documentation

◆ NostrPool

◆ UnsignedNostrEvent


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