All lessons · Wallets and signing · Start here · Glossary
Multisig sighash placeholder lock: script plus M zeroed signaturesWorkingFrom one fix
From one fix · Check: right · Checked 2026-11-19
When computing the signing message for a secp256k1_blake160_multisig_all input, set the first witness's WitnessArgs.lock to the multisig script bytes followed by threshold × 65 zero bytes (a single key sighash lock uses just 65 zero bytes), and keep the inputType and outputType fields, before calling CCC's tx.getSignHashInfo(script, client). The same placeholder length must be used here as in the signed witness, otherwise the message differs from what the lock script hashes on chain.
Why it matters: If the placeholder lock has a different length or content from the final signed lock, the signers sign a message the on-chain multisig script never reproduces, so every signature fails verification.
Pattern
return `${group.config.script}${"00".repeat(SIGNATURE_BYTES * group.config.threshold)}`;Taken from the commit, shortened.
A test changed in the same commit
It sits next to the fix. We did not run it.
- ILE-Labs/ckb-msig:
test/ckb/addresses.test.ts,test/ckb/deployments.test.ts,test/ckb/embedded-check.test.ts,test/ckb/input-resolver.test.ts,test/ckb/lock-classifier.test.ts
- Concepts
- Witnesses and signatures, Transaction building and fees
- Evidence
- From one fix: from one project, checked against its commit
- First seen
- 2026-11-08
- Last changed
- 2026-11-08
- Last checked
- 2026-11-19
- Check against the commit
- right: the lesson follows from its commit and still holds in the code today
Sources (2)
- 2026-11-08 · ILE-Labs/ckb-msig · more from this project
- 2026-11-08 · ILE-Labs/ckb-msig · more from this project
More about 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
- One placeholder witness per input when all inputs share one lock
Do you maintain a project this lesson came from? Confirm or correct it
Cite this lesson
LusoCryptoLabs, "Multisig sighash placeholder lock: script plus M zeroed signatures", CKB lessons, https://pulse.lusocryptolabs.com/learned/wallets/multisig-sighash-placeholder-lock-script-plus-m-zeroed-signa, CC BY 4.0, last changed 2026-11-08.