|
Radix Relay
Hybrid mesh communications with Signal Protocol encryption
|
Classes | |
| struct | eose |
| End of Stored Events marker. More... | |
| struct | event |
| Nostr EVENT message wrapper. More... | |
| struct | event_data |
| Nostr event data structure. More... | |
| struct | ok |
| Nostr OK response message. More... | |
| struct | req |
| Nostr REQ subscription request. More... | |
Enumerations | |
| enum class | kind : std::uint16_t { profile_metadata = 0 , text_note = 1 , recommend_relay = 2 , contact_list = 3 , encrypted_dm = 4 , reaction = 7 , parameterized_replaceable_start = 30000 , bundle_announcement = 30078 , encrypted_message = 40001 , identity_announcement = 40002 , session_request = 40003 , node_status = 40004 } |
| Nostr event kind identifiers. More... | |
Functions | |
| auto | validate_subscription_id (const std::string &subscription_id) -> void |
| Validates a subscription ID. | |
Variables | |
| constexpr auto | bundle_announcement_minimum_version = "0.4.0" |
| Minimum protocol version required for bundle announcements. | |
| constexpr std::size_t | max_subscription_id_length = 64 |
| Maximum allowed subscription ID length. | |
|
strong |
Nostr event kind identifiers.
Defines standard Nostr event kinds and Radix Relay custom kinds.
Definition at line 21 of file protocol.hpp.
|
inline |
Validates a subscription ID.
| subscription_id | ID to validate |
| std::invalid_argument | if ID is empty or exceeds maximum length |
Definition at line 250 of file protocol.hpp.
References max_subscription_id_length.
|
inlineconstexpr |
Minimum protocol version required for bundle announcements.
Definition at line 14 of file protocol.hpp.
Referenced by radix_relay::nostr::message_handler< Bridge >::handle().
|
constexpr |
Maximum allowed subscription ID length.
Definition at line 242 of file protocol.hpp.
Referenced by validate_subscription_id().