Todas as lições · Developer tooling · Começa aqui · Glossário
Witnesses do not follow reordered inputsPráticoDe uma correção
De uma correção · Verificação: certa · Verificada em 2026-11-19
Witnesses are matched to inputs by position: witness i belongs to input i, and a script reading GroupInput witnesses sees the witnesses at its group's input positions. Reordering inputs does not move the witnesses, so after reordering, check and rebuild the witness list so each input's position again holds the intended witness.
Porque importa: After an input reorder, a script group can read a witness meant for a different input, so verification can fail or check the wrong data.
Um teste mudou no mesmo commit
Está ao lado da correcção. Nós não o corremos.
- Hanssen0-Alter-Ego/ckb-vm-js:
tests/browser/workbench.spec.js,tests/js/guided.test.js
- Conceitos
- Witnesses and signatures, Transaction building and fees
- Evidência
- De uma correção: de um projeto, verificada contra o commit
- Vista pela primeira vez
- 2026-11-16
- Última mudança
- 2026-11-16
- Ú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-16 · Hanssen0-Alter-Ego/ckb-vm-js · mais deste projeto
Mais sobre Developer tooling
- ckb-cli deploy info file layout for offline multisig signing
- ckb-cli needs --skip-check to sign and send transactions with custom locks
- ckb-cli tx init overwrites an existing tx file with an empty skeleton
Manténs um projeto de onde esta lição veio? Confirma ou corrige
Citar esta lição
LusoCryptoLabs, "Witnesses do not follow reordered inputs", CKB lessons, https://pulse.lusocryptolabs.com/learned/tooling/witnesses-do-not-follow-reordered-inputs, CC BY 4.0, last changed 2026-11-16.