CKB Pulse

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.

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)

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, "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.

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.