Todas as lições · Wallets and signing · Começa aqui · Glossário
One placeholder witness per input when all inputs share one lockPráticoDe uma correção
De uma correção · Verificação: certa · Verificada em 2026-11-19
In this deploy builder, several funding inputs all share the owner's lock. The signing witness (WitnessArgs) goes at index 0, and every other input gets an empty "0x" witness, so the witnesses list stays as long as the inputs list. That matches the secp256k1 sighash script group layout, where the first witness of the group carries the signature and covers the rest.
Porque importa: Without one witness slot per input, a multi-input transaction under one secp256k1 lock has no agreed place for the single group signature, so signing tools and the lock script's witness hashing see a layout that does not match the inputs.
Padrão
tx["witnesses"] = [c.witness()] + ["0x"] * (len(points) - 1)Tirado do commit, encurtado.
- 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-05
- Última mudança
- 2026-11-05
- Ú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-05 · wamimi/noir-ckb-verifier · mais deste projeto
Mais sobre Wallets and signing
- JoyID lock witness outputType may carry a subkey proof, so type script data must move elsewhere
- JoyID signer prices fees with a 1,000 byte signature placeholder
- Multisig sighash placeholder lock: script plus M zeroed signatures
Manténs um projeto de onde esta lição veio? Confirma ou corrige
Citar esta lição
LusoCryptoLabs, "One placeholder witness per input when all inputs share one lock", CKB lessons, https://pulse.lusocryptolabs.com/learned/wallets/one-placeholder-witness-per-input-when-all-inputs-share-one, CC BY 4.0, last changed 2026-11-05.