Todas as lições · Wallets and signing · Começa aqui · Glossário
Use the secp256k1 sighash dep group, not the bare code cell, as the lock depPráticoDe uma correção
De uma correção · Verificação: certa · Verificada em 2026-11-19
When a hand-built transaction spends a secp256k1_blake160_sighash_all cell, it needs a cell dep for that lock. That dep should be the genesis dep group (dep_type dep_group), not the bare code cell in genesis tx0, because the lock also loads the secp256k1_data table from a second cell. With only the code cell, ScriptNotFound goes away but the lock then fails inside execution.
Porque importa: A transaction that carries only the bare sighash code cell as a dep gets past ScriptNotFound, but the lock then fails during execution because the secp256k1_data cell it loads is missing.
Padrão
return { out_point, dep_type: "dep_group" };Tirado do commit, encurtado.
Um teste mudou no mesmo commit
Está ao lado da correcção. Nós não o corremos.
- toastmanAu/daowow:
apps/web/test/aggregate-tx.test.js,apps/web/test/freeze-tx.test.js,apps/web/test/genesis-tx.test.js
- Conceitos
- Cell deps and script lookup, Transaction building and fees
- Evidência
- De uma correção: de um projeto, verificada contra o commit
- Vista pela primeira vez
- 2026-09-24
- Última mudança
- 2026-09-25
- Última verificação
- 2026-11-19
- Verificação contra o commit
- certa: a lição sai do commit e continua a valer no código de hoje
Fontes (2)
- 2026-09-24 · toastmanAu/daowow · mais deste projeto
- 2026-09-25 · toastmanAu/daowow · mais deste projeto
Mais sobre Wallets and signing
- Binding an off-chain lock proof to the live cell deps it ran with
- 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
Manténs um projeto de onde esta lição veio? Confirma ou corrige
Citar esta lição
LusoCryptoLabs, "Use the secp256k1 sighash dep group, not the bare code cell, as the lock dep", CKB lessons, https://pulse.lusocryptolabs.com/learned/wallets/use-the-secp256k1-sighash-dep-group-not-the-bare-code-cell-a, CC BY 4.0, last changed 2026-09-25.