3

I have read the following:

https://github.com/bitcoin/bips/blob/master/bip-0016.mediawiki

https://darkwallet.is/bip16-17

However, I would like to know, can one specify a pay-to-script hash that includes another pay-to-script hash?

E.G.

Script for payer: DUP HASH160 EQUALVERIFY CHECKSIG

scriptA: DUP HASH160 EQUALVERIFY CHECKSIG

Can one include a CHECKSIG operation for another script inside a script referred to by a pay-to-script hash?

I'm probably not communicating this clearly, but I would basically like to know whether I can "daisy-chain" pay-to-script hashes together. Let me know if I should add more examples, or what changes I should make to this.

1
  • As @amaclin said - no, but perhaps if you say why'd you need that, someone might propose an alternate solution. E.g. it's possible to daisychain a set of transactions...
    – kolinko
    Commented Jul 17, 2014 at 20:58

1 Answer 1

3

No.

BIP-16 says that client executes script and if it matches P2SH - removes top item from the stack and executes it as script. That's all. No inner loops and checks.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.