|
Radix Relay
Hybrid mesh communications with Signal Protocol encryption
|
Nostr OK response message. More...
#include <protocol.hpp>
Static Public Member Functions | |
| static auto | deserialize (const std::string &json) -> std::optional< ok > |
| Deserializes OK message from JSON. | |
Public Attributes | |
| std::string | event_id |
| ID of the event this responds to. | |
| bool | accepted {} |
| Whether the event was accepted. | |
| std::string | message |
| Human-readable status message. | |
Nostr OK response message.
Sent by relays to indicate acceptance/rejection of a submitted event.
Definition at line 148 of file protocol.hpp.
|
static |
Deserializes OK message from JSON.
| json | JSON string in format ["OK", event_id, accepted, message] |
| bool radix_relay::nostr::protocol::ok::accepted {} |
Whether the event was accepted.
Definition at line 151 of file protocol.hpp.
| std::string radix_relay::nostr::protocol::ok::event_id |
ID of the event this responds to.
Definition at line 150 of file protocol.hpp.
| std::string radix_relay::nostr::protocol::ok::message |
Human-readable status message.
Definition at line 152 of file protocol.hpp.