Register a statement: sign your own objects
Whisper's transparency log is an append-only registry you can write to. Sign a statement about any object you hold (a document, a build artifact, a model, a dataset), register it, and get back a COSE receipt that proves it was logged, verifiable by anyone with stock CBOR and COSE tooling and no Whisper code.
The log behind /checkpoint is a SCITT Transparency Service (RFC 9943). This page is the producer walkthrough: sign, register, receipt, verify, in four copy-paste steps. If you want the receipt wire format and the Merkle fold in depth, that reference is SCITT receipts; this page is the "how do I get MY object in there" recipe.
It is a close cousin of Sign agent outputs, with one addition. That recipe binds a signature to a key you publish in DNS, so a recipient checks it against your name; nothing is logged. Here you also drop the signed statement into a shared, append-only log and get an inclusion proof back, so a third party can later show your statement existed and has not been altered since, without ever contacting you. The two compose: publish the key with one, prove the record with the other.
Keyless to read, one key to write
Two tiers, Postel style. Reading and verifying any entry is keyless, and always will be. Writing into the shared tree takes an API key, and that is the only thing the key is for here: an anti-spam gate on a single log everyone shares. One tree, one root, one signing key. The receipt you get back is the same envelope SCITT receipts folds, and it resolves to the same root as the checkpoint.
What you register is a claim about your object, not the object itself. The tree is a log, not a blob store (statements cap at 64 KiB), so you sign a small statement over your object's hash and leave the object wherever it already lives.
The shape of a Signed Statement
A Signed Statement is a COSE_Sign1 (CBOR tag 18): [protected, unprotected, payload, signature], signed by YOUR key. The registration policy is small, standard (RFC 9943 §6), and it is everything the log checks on the way in:
- the
protectedheader carriesalg (1),-7(ES256) or-9(ESP256); a key identifierkid (4), the 32-byte SHA-256 of your key's SubjectPublicKeyInfo; and, mandatory,CWT_Claims (15): a map withiss (1), who is saying it, andsub (2), what it is about. All three must sit in the protected header so your signature covers them. - the
payloadis your object's hash, or a small manifest about it. Sign the hash, not the file. - the
signatureis over the COSESig_structure, which is exactly["Signature1", protected, h'', payload](RFC 9052 §4.4).
The log checks your signature before it registers anything, as RFC 9943 §5.1.1.1 requires, and its trust anchors are the keys names publish in the zones Whisper serves. So the issuer is a Whisper agent (or a name in a zone you brought to Whisper), the key the kid names is one that agent publishes in its DNSSEC-signed _whisper-agentkey record (see Sign agent outputs), and the signature must verify against it. Only the account that holds an agent can register that agent's statements. An issuer outside those zones is refused with a 400: the log has no trust anchor to check it against, and a receipt for an unchecked signature would prove less than it appears to. The policy is itself a Signed Statement in the log, linked from every answer (the Link with rel="https://whisper.online/docs/scitt-receipts#registration-policy"); fetch that entry with Accept: application/scitt-statement+cose to read exactly what was checked.
The log commits to one spelling of your statement: tagged, shortest-form CBOR, unprotected header emptied (RFC 9943 §6.3). Nothing your signature covers changes. Send that form, as the script below does, and your bytes go in as they are.
1. Sign your object
Stock Python, cbor2 plus cryptography, no Whisper code. It signs with your agent's identity key, the P-256 key in identity-key.pem whose public half the agent publishes (the same file Sign agent outputs signs with). COSE wants the raw 64-byte r || s, not the DER the library returns, and step 3 does that conversion:
pip install cbor2 cryptography
# identity-key.pem is the agent's identity key, made once on the machine that holds it and handed
# to op:connect as identity_public_key, exactly as Sign agent outputs (/docs/sign-outputs) makes it:
# openssl ecparam -name prime256v1 -genkey -noout -out identity-key.pem
# Or let the whisper CLI make it: `whisper connect --tier wireguard --adopt-key` publishes this
# host's key for the agent and keeps the PEM under ~/.config/whisper/identity/, one file per /128.
import cbor2, hashlib
from cryptography.hazmat.primitives import hashes, serialization
from cryptography.hazmat.primitives.asymmetric import ec
from cryptography.hazmat.primitives.asymmetric.utils import decode_dss_signature
# 1. Your object, reduced to its SHA-256. Sign the hash; the file stays where it is.
digest = hashlib.sha256(open("model.safetensors", "rb").read()).digest()
# 2. Your agent's identity key. Its kid is SHA-256 of the SubjectPublicKeyInfo, the
# value the agent's _whisper-agentkey record publishes (see /docs/sign-outputs).
sk = serialization.load_pem_private_key(open("identity-key.pem", "rb").read(), None)
spki = sk.public_key().public_bytes(serialization.Encoding.DER,
serialization.PublicFormat.SubjectPublicKeyInfo)
name = "acef2002a323d40d4.t7af9242c44554e0f8e183ac8e6fbf645.agents.whisper.online"
protected = {
1: -7, # alg = ES256
4: hashlib.sha256(spki).digest(), # kid = SHA-256(SPKI), 32 bytes
15: {1: "did:web:" + name, 2: "model.safetensors"}, # CWT_Claims: iss (who), sub (what)
}
protected_bstr = cbor2.dumps(protected)
# 3. Sign the COSE Sig_structure: ["Signature1", protected, external_aad=b"", payload].
# The library returns DER; COSE wants the fixed-width r || s.
sig_structure = cbor2.dumps(["Signature1", protected_bstr, b"", digest])
r, s = decode_dss_signature(sk.sign(sig_structure, ec.ECDSA(hashes.SHA256())))
signature = r.to_bytes(32, "big") + s.to_bytes(32, "big")
# 4. The COSE_Sign1 Signed Statement (tag 18): [protected, unprotected, payload, signature]
statement = cbor2.dumps(cbor2.CBORTag(18, [protected_bstr, {}, digest, signature]))
open("statement.cose", "wb").write(statement)
# The entry id is the SHA-256 of these exact bytes; the log commits to them.
print("entry id:", hashlib.sha256(statement).hexdigest())
model.safetensors is just an example; substitute a document, a container image digest, an SBOM, or a dataset manifest. name is your agent's fqdn: a Whisper agent already has a DNSSEC-anchored name that publishes its key, which is what lets the log, and anyone after it, check the signature. iss may also be written https://<fqdn> or the bare fqdn.
2. Register it
POST /entries with your API key and the raw COSE bytes:
curl -sS -X POST "https://whisper.online/entries" \
-H "X-API-Key: whisper_live_xxx" \
-H "Content-Type: application/cose" \
--data-binary @statement.cose -D -
# HTTP/2 202
# location: /entries/769a35a6c2a984557188e2ea3f27a6c739c31650595d8d8f3dc94a6ff611ab82
# retry-after: 2
#
# the same POST ten seconds later, once the leaf is sequenced:
# HTTP/2 201
# location: /entries/769a35a6c2a984557188e2ea3f27a6c739c31650595d8d8f3dc94a6ff611ab82
# x-whisper-scitt-entry-id: 616002
# x-whisper-scitt-entry: 3c05edef6a56e2281dde0ef991e73ff65fc4fc2dc984d723ccf658a2344b0d6f
# x-whisper-scitt-leaf-salt: 7168221e... (yours alone, shortened here)
# x-whisper-scitt-leaf-preimage: V05TSUQxNTEAAQAAAAlzdGF0ZW1lbnQ...
# content-type: application/cose (468 bytes: the Receipt)
Use the API key of the account that holds the agent. 202 Accepted means the statement is committed and the sequencer is assigning it a Merkle leaf. The Location id is the 64-hex SHA-256 of the bytes you sent, the same value the sign script printed. Registration is idempotent: re-POST the identical statement and you get 201 Created with the receipt, never a second leaf.
The 201 you get with the agent's own account carries the leaf's opening as well: X-Whisper-Scitt-Leaf-Salt (hex) and X-Whisper-Scitt-Leaf-Preimage (base64). SHA-256(salt ‖ preimage) equals X-Whisper-Scitt-Entry, and the preimage names stmt:<entry id>, so a bundle that keeps the pair ties the receipt to your statement on its own, even after the log erases its copy of the salt. Anyone else who posts the same bytes gets the receipt without the opening.
Anything the log will not take comes back as an RFC 9290 problem document that says exactly why (a missing CWT_Claims, a kid the agent does not publish, a signature that does not verify, an issuer outside Whisper's zones, a body over 64 KiB), never an opaque 500.
3. Get your receipt
GET the id from the Location. This is keyless, so anyone you hand the id to can do it too:
curl -sD headers.txt -H "Accept: application/scitt-statement+cose" \
"https://whisper.online/entries/9f2b7c...e41a" -o statement.scitt
grep -i '^x-whisper-scitt-entry:' headers.txt | tr -d '\r' | awk '{print $2}' > entry.hex
While the leaf is being sequenced you get 204 No Content with a Retry-After; poll until 200. Without an Accept header the 200 body is the bare Receipt, application/cose, which is what SCRAPI clients expect. The Accept above asks for a Signed Statement instead, so you get the full Transparent Statement (application/scitt-statement+cose, RFC 9943 §7): your envelope, with the log's Receipt appended to its unprotected receipts (394) header. Both signatures, yours over the object and the log's over the tree, keep verifying on that one file. If the server does not hold your statement's bytes it answers with the Receipt, labelled application/scitt-receipt+cose so you can tell; the proof is the same either way.
The response headers carry the pieces a verifier folds:
| Header | Meaning |
|---|---|
X-Whisper-Scitt-Entry-Id |
the decimal Merkle leaf index |
X-Whisper-Scitt-Entry |
the 32-byte opaque commitment, the SCITT "entry": leaf_hash = SHA-256(0x00 ‖ entry) |
X-Whisper-Ledger-Claim |
the current claim level of the served checkpoint (see the last section) |
4. Verify it yourself, offline
Two independent checks fall out of that one file. The Receipt proves inclusion (the log logged it); your own signature proves authorship (your key made it). Both use stock cbor2 plus cryptography; the inclusion fold is identical to the one on SCITT receipts.
Inclusion, against the log's key and the checkpoint root:
curl -s https://whisper.online/.well-known/scitt-keys -o scitt-keys.cbor
curl -s https://whisper.online/checkpoint > checkpoint.txt
import base64, cbor2, hashlib
from cryptography.hazmat.primitives.asymmetric.ed25519 import Ed25519PublicKey
ts = cbor2.loads(open("statement.scitt", "rb").read()) # your Transparent Statement (tag 18)
s_protected, s_unprot, s_payload, s_sig = ts.value
receipt = cbor2.loads(s_unprot[394][0]) # the log's Receipt, out of receipts(394)
r_protected, r_unprot, r_payload, r_sig = receipt.value
rhdr = cbor2.loads(r_protected)
assert rhdr[1] in (-19, -8) and rhdr[395] == 1, "Ed25519 + RFC9162_SHA256 receipt"
assert r_payload is None, "detached: the verifier recomputes the signed root"
# the inclusion proof rides vdp(396){-1}: [tree_size, leaf_index, path]
tree_size, leaf_index, path = cbor2.loads(r_unprot[396][-1][0])
# leaf hash from the entry commitment (the X-Whisper-Scitt-Entry response header)
entry = bytes.fromhex(open("entry.hex").read().strip())
node = hashlib.sha256(b"\x00" + entry).digest()
# fold the path to the root (RFC 9162 section 2.1.3.2)
fn, sn = leaf_index, tree_size - 1
for sib in path:
if fn & 1 or fn == sn:
node = hashlib.sha256(b"\x01" + sib + node).digest()
if not fn & 1:
while fn & 1 == 0 and fn != 0:
fn >>= 1; sn >>= 1
else:
node = hashlib.sha256(b"\x01" + node + sib).digest()
fn >>= 1; sn >>= 1
root = node
# the log's Ed25519 signature under the published COSE_Key (kty OKP, crv Ed25519)
keys = cbor2.loads(open("scitt-keys.cbor", "rb").read())
k = next(x for x in keys if x[1] == 1 and x[-1] == 6)
Ed25519PublicKey.from_public_bytes(k[-2]).verify(
r_sig, cbor2.dumps(["Signature1", r_protected, b"", root]))
print("inclusion: OK (log-signed against the checkpoint root)")
# and the root byte-matches the C2SP checkpoint at this tree size
lines = open("checkpoint.txt").read().splitlines()
assert int(lines[1]) == tree_size and base64.b64decode(lines[2]) == root
print("one tree, one root:", lines[2], "at size", tree_size)
Authorship, against the key you named. The log checked this once, at registration; a relying party checks it again for itself. It resolves the public key the kid names from the _whisper-agentkey record at the iss name (see Sign agent outputs), then:
from cryptography.hazmat.primitives import hashes, serialization
from cryptography.hazmat.primitives.asymmetric import ec
from cryptography.hazmat.primitives.asymmetric.utils import encode_dss_signature
# resolve the agent's SPKI from _whisper-agentkey in the wild; here it is the key from step 1
pub = serialization.load_der_public_key(spki)
assert cbor2.loads(s_protected)[4] == hashlib.sha256(spki).digest(), "the kid names this key"
der = encode_dss_signature(int.from_bytes(s_sig[:32], "big"), int.from_bytes(s_sig[32:], "big"))
pub.verify(der, cbor2.dumps(["Signature1", s_protected, b"", s_payload]), ec.ECDSA(hashes.SHA256()))
assert s_payload == hashlib.sha256(open("model.safetensors", "rb").read()).digest()
print("authorship: OK (your key signed this exact object hash)")
Three facts now stand on their own, no Whisper account in the trust path: the statement is in the log (inclusion), you made it (authorship), and the object is the exact bytes the statement names (the hash compare). Any one failing means reject.
What a receipt proves, and what it does not
A receipt asserts one precise thing: log-signed inclusion. Your exact signed statement is a leaf in the tree whose root the log's key signed, and, when the X-Whisper-Ledger-Claim header reads publicly verifiable / split-view-resistant, a quorum of at least two genuinely independent witnesses is cosigning that checkpoint, so the log cannot show you one history and someone else another. MarkovianProtocol cosigns today as one such witness. That claim level is a property of the artifact you fetched and self-reverts if the quorum lapses, so a verifier never takes our word for it; it reads the live header.
What a receipt does not do: it does not certify that your object's contents are true, correct, complete, or lawful. The log never reads your object, and it does not vouch for your key or your claim. Authorship is what your own signature proves; the truth of the claim is between you and your relying party. A receipt is evidence that a specific signed statement existed and has not been altered since it was logged, no more and no less. It also records registration order, not wall-clock time: if you need to prove WHEN, anchor the checkpoint to Bitcoin with OpenTimestamps.
Next: SCITT receipts for the full receipt wire format and the fold in depth, Transparency log for the checkpoint chain your receipt anchors to, Sign agent outputs to publish the key that signs your statements, or OpenTimestamps to add a Bitcoin-anchored proof of time.