All lessons · Wallets and signing · Start here · Glossary
Binding an off-chain lock proof to the live cell deps it ran withAdvancedChecked by the owner
Checked by the owner · Check: right · Checked 2026-11-19
When an off-chain signature proof is verified by running the lock against cell deps read live from the chain, record every out point those deps resolved to, dep group members included. Treat the resulting authorization as valid only while all of those cells are still live. A lock upgrade, a redeployment, or a key rotation or recovery in a lock that keeps its keys in a dep cell spends one of them, and the owner must prove again.
Why it matters: Without the recorded out points, a binding keeps trusting a proof made under lock code or key cells that were later upgraded, rotated or recovered away.
Pattern
return { ok: true, fields, cycles: run.cycles, cellDeps };Taken from the commit, shortened.
A test changed in the same commit
It sits next to the fix. We did not run it.
- LusoCryptoLabs/ckb-ward:
tests/vectors.test.ts
- Concepts
- Cell deps and script lookup, Login and authorization
- Evidence
- Checked by the owner: checked by the owner of the project it came from, who is also the publisher of these lessons
- First seen
- 2026-11-04
- Last changed
- 2026-11-04
- Last checked
- 2026-11-19
- Check against the commit
- right: the lesson follows from its commit and still holds in the code today
Sources (1)
- 2026-11-04 · LusoCryptoLabs/ckb-ward · more from this project
More about Wallets and signing
- JoyID sub key membership is checked through the CoTA aggregator
- JoyID sub key signatures depend on the live CoTA cell dep holding the sub key root
- Lock code hashes differ between testnet and mainnet for Omnilock, JoyID, ACP and PW lock
Checked by @LusoCryptoLabs (owner of the project), 2026-11-19.
Do you maintain a project this lesson came from? Confirm or correct it
Cite this lesson
LusoCryptoLabs, "Binding an off-chain lock proof to the live cell deps it ran with", CKB lessons, https://pulse.lusocryptolabs.com/learned/wallets/binding-an-off-chain-lock-proof-to-the-live-cell-deps-it-ran, CC BY 4.0, last changed 2026-11-04.