Todas as lições · Developer tooling · Começa aqui · Glossário
Shape of ckb-cli deploy sign-txs outputPráticoDe uma correção
De uma correção · Verificação: certa · Verificada em 2026-11-19
`ckb-cli deploy sign-txs` prints two maps, `cell_tx_signatures` and `dep_group_tx_signatures`, for the deploy info file's `cell_tx` and `dep_group_tx`. Each map goes from lock args (20 bytes, or 28 for multisig args with a since) to one 65 byte signature. It prints YAML-style text by default and a JSON object with `--output-format json`, and the YAML writer prints an empty map inline as `cell_tx_signatures: {}`, so a parser collecting multisig signatures must accept both shapes and the inline empty header.
Porque importa: A parser that expects only one output shape, or only block-style headers, misses sections or signatures. Collected signatures then get attached to the wrong deploy transaction or silently dropped.
Padrão
const HEADER = /^(cell_tx_signatures|dep_group_tx_signatures):\s*(\{\s*\})?$/;Tirado do commit, encurtado.
- Conceitos
- Witnesses and signatures, Data encoding (molecule, hex, bigints)
- Evidência
- De uma correção: de um projeto, verificada contra o commit
- Vista pela primeira vez
- 2026-11-08
- Última mudança
- 2026-11-08
- Ú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 (1)
- 2026-11-08 · ILE-Labs/ckb-msig · mais deste projeto
Mais sobre Developer tooling
- ckb-vm-js 0.2.0 (npm) checks header hash instead of rejecting the field
- Matching a Script code_hash to its code Cell by hash_type
- ckb-cli deploy info file layout for offline multisig signing
Manténs um projeto de onde esta lição veio? Confirma ou corrige
Citar esta lição
LusoCryptoLabs, "Shape of ckb-cli deploy sign-txs output", CKB lessons, https://pulse.lusocryptolabs.com/learned/tooling/shape-of-ckb-cli-deploy-sign-txs-output, CC BY 4.0, last changed 2026-11-08.