Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

hivemind-rendezvous

A store-and-forward dead drop for HiveMind nodes that are never online at the same time. One node deposits a message into another node's mailbox — addressed by the recipient's access key, with the payload encrypted to that recipient's public key — and the recipient collects it whenever it next connects.

A rendezvous node is an ordinary hivemind-core node that holds mail. It speaks the normal HiveMind protocol over the listener that is already accepting clients, using the RENDEZVOUS message type. There is no second service, no second port, and no second set of credentials.

Enable it

Install the package on the node that should hold mail, and switch it on in the hivemind-core config, the same way hivemind-presence is enabled:

pip install hivemind-rendezvous
{
  "rendezvous": {
    "enabled": true,
    "max_pending_per_mailbox": 256
  }
}

Nodes without the package installed, or with enabled false, answer RENDEZVOUS with not_a_rendezvous_node. A peer can therefore tell "no mail" apart from "not a rendezvous node" and move on to one that is.

How it works

Node A (sender)      Rendezvous node        Node B (recipient)
     │                      │                      │
     │-- RENDEZVOUS ------->│                      │
     │   cmd=deposit        │                      │
     │   target=B.access_key│   (stored, TTL ≤7d)  │
     │                      │                      │
     │              (time passes)                  │
     │                      │<---- RENDEZVOUS -----│
     │                      │      cmd=collect     │
     │                      │--- messages -------->│
     │                      │<---- RENDEZVOUS -----│
     │                      │      cmd=ack         │
     │                      │  (deleted)           │

Three commands, all carried in the RENDEZVOUS payload:

cmd Fields Reply
deposit target_key, payload (a serialised INTERCOM message), optional ttl deposit_id
collect none messages: a list of {deposit_id, payload}
ack deposit_ids removed: how many were deleted

Only INTERCOM may be deposited: it is the one type the relay has no reason to look inside.

What the hive already provides

The relay has no authentication code of its own, because the connection is already authenticated:

  • A caller cannot name a mailbox. collect and ack operate on the access key this connection authenticated with. Asking for another node's mail is not something the wire can express, so there is no ownership proof to sign, no timestamp to check, and no replay window. It is deliberately not addressed by public key: that is announced in HELLO with no proof of possession.
  • Confidentiality is the link (wss, or the Noise transport on protocol v3), on top of the end-to-end encryption the deposited envelope carries.
  • Admission and flood control belong to the listener. An unknown client never reaches the mailbox.

Delivery

Delivery is at-least-once. collect returns messages and leaves them stored; they are deleted only when the recipient acks the deposit ids it actually received. A reply lost in transit therefore costs a redelivery rather than the message.

That trade is deliberate. The recipient may occasionally see a message twice, which it can detect. The alternative — deleting on read — loses the message permanently whenever a response goes missing, and the peer this system exists for is, by definition, unreachable for a resend.

Messages expire after seven days.

Storage

Mail is kept in a json_database.JsonStorageXDG file, keyed by the SHA-256 fingerprint of the recipient's public key. Expiry is enforced whenever a mailbox is read, and the whole store is swept for expired entries at most once every five minutes, so request cost tracks the mailbox being touched rather than total stored volume.

The store holds everything in memory. That is fine for the volume a dead drop between a handful of hives sees, and is the first thing to replace with a hivemind-plugin-manager database backend if that stops being true.

Docs

Metadata

Release files for hivemind-rendezvous 2.0.0a4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for hivemind-rendezvous 2.0.0a4
File Size Uploaded
hivemind_rendezvous-2.0.0a4.tar.gz 15.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for hivemind-rendezvous 2.0.0a4
File Interpreter ABI Platform
hivemind_rendezvous-2.0.0a4-py3-none-any.whl Python 3 none any Details

Total release size: 27.1 kB

Release files / hivemind_rendezvous-2.0.0a4.tar.gz

Download URL hivemind_rendezvous-2.0.0a4.tar.gz
Size 15.2 kB
Tags Source
SHA-256 checksum
How to use checksums
1ad9283e1505489d195dc0e9bb11304f586e18449dc22980f759581c0fc77dd8
BLAKE2b-256 checksum
How to use checksums
1cc90cfc43c2fc00cf8099a40cc087938e3cb57216df471078e7a4b57ae8924d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

Release files / hivemind_rendezvous-2.0.0a4-py3-none-any.whl

Download URL hivemind_rendezvous-2.0.0a4-py3-none-any.whl
Size 11.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
91c14b258cba6fa5cde2bb3ef64975bdc2ac0b13bac62d02466b1cc7638faf8b
BLAKE2b-256 checksum
How to use checksums
005a1604d5519a88f1328ce75c8d1b7dc70ddc546e60adec383672365adc4974
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page