Scheduled key release API

Public service homepage

Fetch the signed manifest first. It contains the keyset ID, schedule, encryption suite, and Merkle root. Pin the expected keyset ID or signing key in your client before encrypting.

Except for the manifest, this page, and the frontend statistics endpoint, endpoints below are relative to /v1/keys/{id}. Slots are zero-based. Each slot opens at start + slot × interval in Unix seconds.

GET /docs and GET /v1/manifest
This documentation and the signed JSON manifest at the origin.
GET /status
Live frontend statistics at the origin. Shows the latest stored release, the most recent new batch since startup, and the number, range, and age of overdue slots. Traffic counts reset on restart. Each catalog download counts all its keys, each proof includes one public key, and repeat requests count again. All timestamps use Unix seconds.
GET /public/{slot}
Public key as hex, with the slot and its release time. Future public keys are available immediately.
GET /proof/{slot}
Public key and Merkle sibling hashes in order from leaf to root, encoded in hex.
GET /public.bin
All public keys as consecutive 32-byte X25519 keys in slot order. There is no header. Key i starts at byte 32 × i.
GET /private/{slot}
Released private key and its HPKE derivation input, both as hex. Returns 403 before the scheduled time and 503 while waiting for the backend to publish.
GET /status under the keyset path
next is the first unpublished slot. due is the number of slots whose scheduled time has passed, capped at the schedule size.
POST /release/{first}
Backend endpoint. Send one to 256 consecutive 32-byte derivation inputs with a Content-Length. The frontend verifies the scheduled times and committed public keys. Identical duplicate submissions are safe. The response contains the next unpublished slot.

Verifying a proof

Hash each leaf as SHA256(0x00 || slot_u32_be || public_key). For each sibling, hash SHA256(0x01 || left || right) in index order, starting with the low bit of the slot index. Compare the result to merkle_root. The tree is padded to the next power of two with leaves SHA256(0x02).

The manifest signature is Ed25519 over SHA256("scheduled-release/v1/manifest" || version_u8 || start_u64_be || interval_u64_be || slots_u32_be || suite_utf8 || root_bytes). The keyset ID is hex-encoded SHA256("scheduled-release/v1/id" || signing_key_bytes).

Encrypting and decrypting

Use HPKE Base with the suite in the manifest. For its info parameter use "scheduled-release/v1/hpke" || keyset_id_bytes || merkle_root_bytes || slot_u32_be. Decode the ID and root from hex first. Seal a random file key with the slot public key and keep the HPKE encapsulation alongside the sealed key. After release, use the returned private key for HPKE Open, or regenerate the key pair by passing key_material to HPKE DeriveKeyPair. Verify that the derived public key matches the committed key.