All lessons · Wallets and signing · Start here · Glossary
JoyID sub key signatures depend on the live CoTA cell dep holding the sub key rootAdvancedChecked by the owner
Checked by the owner · Check: right · Checked 2026-11-19
A JoyID sub key (second device) signature is checked by the JoyID lock against the sub key root held in the account's CoTA cell, which the transaction carries as a cell dep. Adding a device spends that CoTA cell and creates a new one with a new root. Two separate things follow: a transaction that still lists the old CoTA out point has a cell dep that is no longer live, and the lock run against the old root data does not accept the sub key signature.
Why it matters: A sub key signature checked against a stale or spent CoTA cell is rejected, and a binding made before the device was added stops being valid from the block that spent the old CoTA cell.
JoyID specific: sub key root lives in the CoTA cell dep.
A test changed in the same commit
It sits next to the fix. We did not run it.
- LusoCryptoLabs/ckb-ward:
tests/joyid-subkey.test.ts
- Concepts
- Cell deps and script lookup, Witnesses and signatures
- 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-06
- Last changed
- 2026-11-06
- 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-06 · LusoCryptoLabs/ckb-ward · more from this project
More about Wallets and signing
- Binding an off-chain lock proof to the live cell deps it ran with
- JoyID sub key membership is checked through the CoTA aggregator
- 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, "JoyID sub key signatures depend on the live CoTA cell dep holding the sub key root", CKB lessons, https://pulse.lusocryptolabs.com/learned/wallets/joyid-sub-key-signatures-depend-on-the-live-cota-cell-dep-ho, CC BY 4.0, last changed 2026-11-06.