Post
Topic
Board Bitcoin Technical Support
Re: 1 out of 2 multi sig setup scenario with hidden public keys
by
nc50lc
on 27/12/2024, 15:17:37 UTC
it's required to be included to the signed raw transaction.
A client/wallet will not be able to sign by having only the private key of a single signer without the redeem script or cosigner's public key to reproduce it.
no, it doesn't.
it'll be able.

https://github.com/bitcoinjs/bitcoinjs-lib/issues/1034
That reference doesn't even support your reply since they're trying to add the redeem script.
The issue is in OP's raw transaction created by his code which was fixed by a series of replies including the last.
If you're talking about the replies about "coinb.in" that can include it, it's because for P2SH, the redeem script is the first requirement to create a transaction there.
If inputs are manually included, the redeem script should be manually provided.

Here's a reference:
The redeem script is required as stated in BIP16 standard: https://github.com/bitcoin/bips/blob/master/bip-0016.mediawiki#specification
As per number 2 in its rules, its hash needs to match the hash in the outpoint's sciptPubkey for validation to succeed.