Radix Relay
Hybrid mesh communications with Signal Protocol encryption
Loading...
Searching...
No Matches
radix_relay::nostr::events::incoming::unknown_message Struct Reference

Received unknown/unrecognized message type. More...

#include <events.hpp>

Inheritance diagram for radix_relay::nostr::events::incoming::unknown_message:
radix_relay::nostr::protocol::event_data

Public Member Functions

 unknown_message (const protocol::event_data &event)
 
- Public Member Functions inherited from radix_relay::nostr::protocol::event_data
auto serialize () const -> std::vector< std::byte >
 Serializes event data to byte array.
 
auto is_radix_message () const -> bool
 Checks if event is a Radix-specific message type.
 
auto get_kind () const -> std::optional< enum kind >
 Returns the event kind.
 

Additional Inherited Members

- Static Public Member Functions inherited from radix_relay::nostr::protocol::event_data
static auto deserialize (std::span< const std::byte > bytes) -> std::optional< event_data >
 Deserializes event data from byte array.
 
static auto deserialize (const std::string &json) -> std::optional< event_data >
 Deserializes event data from JSON string.
 
static auto create_identity_announcement (const std::string &sender_pubkey, std::uint64_t timestamp, const std::string &signal_fingerprint, const std::string &capabilities="mesh,nostr") -> event_data
 Creates an identity announcement event.
 
static auto create_bundle_announcement (const std::string &sender_pubkey, std::uint64_t timestamp, const std::string &bundle_hex) -> event_data
 Creates a bundle announcement event.
 
static auto create_encrypted_message (std::uint64_t timestamp, const std::string &recipient_pubkey, const std::string &encrypted_payload) -> event_data
 Creates an encrypted message event.
 
static auto create_session_request (const std::string &sender_pubkey, std::uint64_t timestamp, const std::string &recipient_pubkey, const std::string &prekey_bundle) -> event_data
 Creates a session establishment request event.
 
- Public Attributes inherited from radix_relay::nostr::protocol::event_data
std::string id
 Event ID (32-byte hex hash)
 
std::string pubkey
 Public key of event creator (32-byte hex)
 
std::uint64_t created_at {}
 Unix timestamp.
 
std::vector< std::vector< std::string > > tags
 Event tags (arbitrary string arrays)
 
std::string content
 Event content.
 
std::string sig
 Schnorr signature (64-byte hex)
 

Detailed Description

Received unknown/unrecognized message type.

Definition at line 41 of file events.hpp.

Constructor & Destructor Documentation

◆ unknown_message()

radix_relay::nostr::events::incoming::unknown_message::unknown_message ( const protocol::event_data event)
inlineexplicit

Definition at line 43 of file events.hpp.


The documentation for this struct was generated from the following file: