On 9/22/12, Mike Hearn <m...@plan99.net> wrote: >> >> Why "Signing the input scripts as well would obviously make it >> impossible to construct a transaction"? > > > As it states in the source code, signatures cannot sign themselves. If > scriptSigs were included in the data that is being signed, the act of > inserting the newly calculated signature for one input would break the > signatures for all the others.
I see. By "input scripts" I thought you meant scriptPubKey rather than scriptSigs. We only need to sign scriptPubKey. Right, Jeff? > Yes, SIGHASH_ALL was the crucial piece I was missing. Great, there's no need for an additional SIGHASH. I guess you're implementing the simple case you describe first. Do you plan to implement the more general case with n participants instead of only 2 (a Ripple transaction)? That would be awesome. -- Jorge Timón On 9/22/12, Jeff Garzik <jgar...@exmulti.com> wrote: > On Sat, Sep 22, 2012 at 5:10 AM, Jorge Timón <timon.elvi...@gmail.com> > wrote: >> I'm very interested in this. I was expecting transitive/multi-hop >> transactions (Ripple) with colored coins, and I don't understand why >> is not possible. >> >> From https://en.bitcoin.it/wiki/Contracts >> >> --- >> SIGHASH_ALL: This is the default. It indicates that everything about > > Yes, SIGHASH_ALL was the crucial piece I was missing. > > I have updated the post to add a concrete example with as much detail > as necessary for programmers to recreate. Review requested: > https://bitcointalk.org/index.php?topic=112007.msg1212356#msg1212356 > > -- > Jeff Garzik > exMULTI, Inc. > jgar...@exmulti.com > -- Jorge Timón ------------------------------------------------------------------------------ How fast is your code? 3 out of 4 devs don\\\'t know how their code performs in production. Find out how slow your code is with AppDynamics Lite. http://ad.doubleclick.net/clk;262219672;13503038;z? http://info.appdynamics.com/FreeJavaPerformanceDownload.html _______________________________________________ Bitcoin-development mailing list Bitcoin-development@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bitcoin-development