Skip to content

OC Lock

Take an envelope apart

Paste an envelope as JSON, base64url or a /unlock#… link, and see what it proves, field by field. No wallet; nothing leaves your browser. The demo is signed with a placeholder, so its sender check fails on purpose.

Refused

The sender’s signature does not hold

Whoever made it is not proven to be the address it names.

  • Contents match the id
    Passed
  • Sender’s signatureThe signature does not verify for the sender’s address.
    Failed
From
bc1qalice0demo0address0for0playground000
For
bc1qbob0demo0address0for0playground00000
Sealed
7 Nov 2026, 03:54 UTC
Id
05a8d29dfbb06fa435f013842f540c340dcf8d787326f35f084e45b1d319ba35

What this did not check

  • That each recipient key is still current. The sender checked that when sealing.
  • When it was really sent. The sealed time is the sender’s claim.
  • Who else has seen the addresses and the hint. They are not encrypted.
Id
Declared
05a8d29dfbb06fa435f013842f540c340dcf8d787326f35f084e45b1d319ba35
Recomputed
05a8d29dfbb06fa435f013842f540c340dcf8d787326f35f084e45b1d319ba35
Match
Yes. The canonical bytes give the same id.

The id is the SHA-256 of the canonical JSON with sig.value emptied. One changed byte anywhere changes it.

Header
v
2
kind
identity
created_at
2026-11-07T03:54:47.766Z
expires_at
Never
hint
greeting
Algorithms
kem
x25519
aead
aes-256-gcm
kdf
hkdf-sha256
Sender
address
bc1qalice0demo0address0for0playground000
sig.alg
bip322
sig.value
ZmFrZS1zaWdu
Recipients (1)
address
bc1qbob0demo0address0for0playground00000
device_id
cfdd601be826835d6a59c993254eb578
device_pk
0d2b556005df23abf834b2e15fb2b3edaf49bf9b8cf9b589324d5553a4cd3e7d
eph_pk
2e5afef63e9c3cd46c84e9dfd8a5f6c6d031f3ca8c2bf07a03acded5fad20a41
wrapped_key
_ysopHbCKhQD8fxFcBk85ZCD7CWvigPa1wQ7k2Yt6t6onmro…
nonce_kek
a389da083b08effca29e49f4
Payload
nonce_ct
f208fbf0be35670b61d804c8
ciphertext
92 characters of base64url
Plaintext size
About 53 bytes, plus a 16-byte GCM tag
Payment

None. Identity mode: no payment is asked for.

Canonical bytes
{"alg":{"aead":"aes-256-gcm","kdf":"hkdf-sha256","kem":"x25519"},"ciphertext":"6fARy1WlOfqBUz2JpSBQ7lzr0_EpWUVMsHCe2a5MxD1qphY4qd9sIAJnVmkNyEALWbCHGzBCkIGHNfzsmqbUxlNqqgKA","created_at":"2026-11-07T03:54:47.766Z","expires_at":null,"from":{"address":"bc1qalice0demo0address0for0playground000"},"hint":"greeting","id":"05a8d29dfbb06fa435f013842f540c340dcf8d787326f35f084e45b1d319ba35","kind":"identity","nonce_ct":"f208fbf0be35670b61d804c8","payment":null,"recipients":[{"address":"bc1qbob0demo0address0for0playground00000","device_id":"cfdd601be826835d6a59c993254eb578","device_pk":"0d2b556005df23abf834b2e15fb2b3edaf49bf9b8cf9b589324d5553a4cd3e7d","eph_pk":"2e5afef63e9c3cd46c84e9dfd8a5f6c6d031f3ca8c2bf07a03acded5fad20a41","nonce_kek":"a389da083b08effca29e49f4","wrapped_key":"_ysopHbCKhQD8fxFcBk85ZCD7CWvigPa1wQ7k2Yt6t6onmroMKHFdRihtLw1c-L2"}],"sig":{"alg":"bip322","pubkey":"bc1qalice0demo0address0for0playground000","value":"ZmFrZS1zaWdu"},"v":2}

Every field, defined: the envelope format (opens in a new tab).