Docs / Sealed calls
Sealed calls
Commit to a prediction now with a signed time. Reveal it later; anyone can recompute it.
A sealed call fixes a text in time without showing it. You get a commitment and a signed receipt with the time. Later you reveal the text and anyone can check that it is exactly what was committed.
The commitment
commitment = sha256( salt ‖ utf8(text) ), where salt is 32 random bytes written as hex. The salt stops anyone guessing a short text from its hash.
Two ways to seal
- Sealed here: send the text; the gateway picks the salt, keeps the text sealed at rest, and can reveal it on a schedule (
reveal_at, within five years). - Sealed in your browser: send only the commitment. The text never leaves your device; you keep the salt and the text and reveal both later.
The calls
POST /v1/calls { text, label?, reveal_at? } or { commitment, label? }
POST /v1/calls/:id/reveal { owner_token, salt?, text? }
POST /v1/calls/:id/withdraw { owner_token }
GET /v1/calls/public/:id status, commitment, times, and once revealed: text + salt
GET /v1/calls/recent the latest public labels
The owner_token is shown once, when you seal. It is the only way to reveal or withdraw.
Check one yourself
The page /c/<id> recomputes the commitment in your browser. Or with coreutils:
{ printf '%s' "$SALT_HEX" | xxd -r -p; printf '%s' "$TEXT"; } | sha256sum