CKB Pulse

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

Prefer
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.

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)

More about Wallets and signing

All 23 in this topic

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.

Drawn from public commits and checked against the commit each one came from and the project's code today. Read the source before you rely on one. Text under CC BY 4.0: credit LusoCryptoLabs, CKB lessons, with a link to the lesson. Want a lesson changed or removed? Open an issue.