Expand description
Sealed push: background notifications nobody in the middle can read or attribute.
A device that wants notifications hands each contact a Ticket. When that contact
sends it a message, the contact’s client writes the notification itself, encrypts it to
the device’s Web Push keys (webpush), and asks a pusher to deliver it (request).
The pusher opens only the part of the ticket sealed to it, the device’s push address,
and never sees who wrote, who receives, or what was said.
webpush: RFC 8291 message encryption, done by the sender.vapid: RFC 8292 keys; the device owns its own, the pusher signs with it.ticket: what a contact holds, and the capability only the pusher can open.request: the Nostr event a sender publishes for the pusher.payload: the notification itself, authenticated per contact.
Re-exports§
pub use payload::Notice;pub use request::Control;pub use request::Hold;pub use request::Incoming;pub use request::Request;pub use request::HOLD_FOREVER;pub use ticket::Capability;pub use ticket::Ticket;
Modules§
- payload
- The notification a sender writes for one device.
- request
- The event a sender publishes for the pusher: signed by a throwaway key, encrypted to the pusher, so neither the relay nor the pusher learns who asked.
- ticket
- Tickets: what a device hands each contact so they can notify it.
- webpush
- RFC 8291 Web Push message encryption,
aes128gcm(RFC 8188), one record.
Enums§
Constants§
- DEFAULT_
PUSHER - The pusher Vector runs. A ticket names its own, so a device may pick another.
- DEFAULT_
PUSHER_ RELAYS - Where the default pusher listens. Two operators: whichever a sender already holds a connection to carries the request, and either one alone is enough.
- TICKET_
RUMOR_ D dtag of the rumor that carries a device’s tickets to a contact.