If you are playing around with the current rawtx API, be careful using SIGHASH_SINGLE:
When parsing a transaction input, which uses a SIGHASH_SINGLE signature, and the given input's index is >= the total number of outputs in the current transaction, bitcoind doesn't sign anything useful, it signs the constant 1. Thus, if anyone were to create such an invalid transaction, any future outputs to the public key which created the signature would be immediately steal-able by anyone. The conclusion on how to fix the issue was to fix the rawtx API to block such transactions instead of creating a hardfork-risk or further complicating transaction verification. Code (in script.cpp:SignatureHash, under SIGHASH_SINGLE): if (nOut >= txTmp.vout.size()) { printf("ERROR: SignatureHash() : nOut=%d out of range\n", nOut); return 1; } Matt ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Bitcoin-development mailing list Bitcoin-development@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bitcoin-development