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/1034That 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 (
P2SH) standard:
https://github.com/bitcoin/bips/blob/master/bip-0016.mediawiki#specificationAs per number 2 in its rules, its hash needs to match the hash in the outpoint's sciptPubkey for validation to succeed.