Kitchen Sink
Everything in one page. Use this to test components before wiring into real content.
Callouts
This is a note. Use it for general supplementary information.
This is a tip. Use it for helpful shortcuts or recommendations.
This is a warning. Use it when something could go wrong.
This is a danger. Use it for irreversible or destructive actions.
Code Block — single language
let session = TrueSealSession::create("my-app", relay_url, relay_pub_key).await?;
session.start_pairing(on_member_request).await?;Code Block — multi language tabs
let session = TrueSealSession::create("my-app", relay_url, relay_pub_key).await?;
session.start_pairing(on_member_request).await?;Tables
| Name | Type | Description |
|---|---|---|
session_id | String | Unique identifier for this session |
relay_url | String | WebSocket URL of the relay |
keypair | Keypair | Device identity keypair, generated on first launch |
timeout_ms | Integer? | Optional timeout. Defaults to 5000 |
Flow Diagram
Phase Stack
The initial connection requires mutual authentication. Both devices exchange ephemeral public keys encrypted with the relay's static public key.
{
"v": "1.2",
"type": "HS_INIT",
"payload": {
"eph_key": "x25519_pub_...",
"ts": 1715428912,
"sig": "ed25519_sig_..."
}
} The relay blindly routes the encrypted packet, validating only the outer envelope headers without accessing the inner payload.
- check_box Header Length Check
- check_box TTL > 0 Validation
- check_box Recipient key exists in active sessions
Once the secure tunnel is established, the sender's outbox is flushed. Each envelope is addressed individually to the recipient's noise public key.
Typography scale
h1 — Display heading
h2 — Section heading
h3 — Subsection heading
h4 — Label heading
Regular body paragraph. trueseal provides composable infrastructure for encrypted sync, device identity, and relay delivery without trusting any server or platform.
Bold text. Italic text. inline code. Link text.
Blockquote — used for pull quotes or notable statements.