[Bitcoin-development] Determine input addresses of a transaction

2011-10-24 Thread Jan Vornberger
Hi there! As part of my green address endeavor, I'm currently trying to extend the 'gettransaction' call to include an extra field inputaddresses which should return a list of the Bitcoin addresses associated with the inputs of the transaction. I understand that this is not generally possible,

Re: [Bitcoin-development] Determine input addresses of a transaction

2011-10-24 Thread Pieter Wuille
On Mon, Oct 24, 2011 at 10:29:57AM +0200, Jan Vornberger wrote: Hi there! As part of my green address endeavor, I'm currently trying to extend the 'gettransaction' call to include an extra field inputaddresses which should return a list of the Bitcoin addresses associated with the inputs of

Re: [Bitcoin-development] Determine input addresses of a transaction

2011-10-24 Thread Gavin Andresen
So my first shot at this is to go through the inputs of a transaction and see if the scriptSig field has only two opcodes. If that is the case, I assume that it is of the structure sig pubKey and calculate the Bitcoin address from pubKey. But then I started to wonder if this is safe. Can this

Re: [Bitcoin-development] Fwd: bitcoin scope issue in main.cpp

2011-10-24 Thread John Smith
Yes, you're right, there is a lot of code is in the fun with knives category. JS On Mon, Oct 24, 2011 at 4:31 PM, Amir Taaki zgen...@yahoo.com wrote: Hahaha you mean like unitialised variables, inheriting from containers with non-virtual dtors (CScript) and delicious copy pasta coding

Re: [Bitcoin-development] Determine input addresses of a transaction

2011-10-24 Thread Simon Barber
PKI would avoid the need for the trust aggregator to be consulted for each transaction. Obviously checking for revocation would be essential. The CA cert can state what kind of guarantee is available. Simon On 10/24/2011 09:25 AM, Mike Hearn wrote: You know, just thinking out loud...

Re: [Bitcoin-development] Help wanted: translations

2011-10-24 Thread John Smith
Those indeed seems weird... I'll take a look at it. JS On Mon, Oct 24, 2011 at 8:55 PM, Geir Harald Hansen opera...@bitminter.comwrote: Three quick examples of duplicated strings. There are many more. Some of the smaller ones may make sense to have duplicated several times in english as