CKB Pulse

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

Prefer
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.

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)

More about Wallets and signing

All 23 in this topic

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.

Drawn from public commits and checked against the commit each one came from and the project's code today. Read the source before you rely on one. Text under CC BY 4.0: credit LusoCryptoLabs, CKB lessons, with a link to the lesson. Want a lesson changed or removed? Open an issue.