Search content
Sort by

Showing 20 of 67 results by JollyGreen
Post
Topic
Board Development & Technical Discussion
Re: Question abount getting the sender's address in a transaction
by
JollyGreen
on 17/03/2011, 16:42:42 UTC
Here is my other thread,
http://bitcointalk.org/index.php?topic=4140.0

I've got most of the code to implement this addition completed, but I need to update it to use sipa's latest modifications.  I'm waiting on his code to be approved into the main bitcoin codebase.
Post
Topic
Board Development & Technical Discussion
Re: Why was this transaction structured this way?
by
JollyGreen
on 17/03/2011, 08:20:05 UTC
I built and ran sipa's code and was just testing it out with the testbox [mike] created,

here is the result of listtransactions after making a few sends thru the gui
{
    "" : 3725.00000000,
    "Test" : 10.00000000,
    "Test2" : 5.00000000,
    "Your Address" : 10.00000000
}

Next I transferred 3726.0 to "Your Address"
{
    "" : -1.00000000,
    "Test" : 10.00000000,
    "Test2" : 5.00000000,
    "Your Address" : 3736.00000000
}

Should a balance be able to be negative?
Post
Topic
Board Development & Technical Discussion
Re: Why was this transaction structured this way?
by
JollyGreen
on 17/03/2011, 06:22:04 UTC
And Hal's right, Bitcoin chooses transactions to spend, not specific outputs (which only matters for sends-to-self, where you own both outputs of a transaction).

This pull request should fix this issue: https://github.com/bitcoin/bitcoin/pull/116


This sounds like a good patch to implement, is there a next step to getting it commited into the root of bitcoin?  Is this pending code review?
Post
Topic
Board Development & Technical Discussion
Re: The first rule of Bitcoin is...
by
JollyGreen
on 17/03/2011, 05:07:05 UTC
Follow the rules!

I've put up a wiki page listing the rules used by the client to process transactions and blocks. It's a bit linear and could benefit from some refactoring, but I didn't want to go too far in terms of pseudocode, because IMO it obscures the logic.

https://en.bitcoin.it/wiki/Protocol_rules


This is a great idea, I think we should do this for a lot of the bitcoin code, it took a while to wrap my head around a lot of the algorithms in the bitcoin source.
Post
Topic
Board Development & Technical Discussion
Need help understanding a transaction case
by
JollyGreen
on 17/03/2011, 05:05:19 UTC
So, I'm working on adding code to bitcoin that allows users to send from specific addresses.  I have it flushed out but running into some issues.  It has takin me a while to properly form the question for the problem I'm running into which relates to understanding how bitcoin handles the below situation:

In the un-modified bitcoin, I'm not sure how the below is handled

*** transaction 1 ***
Say you have 50 BTC in your account from 1 generation
you use "sendfrom" to send 1 BTC to another account you own
this creates a transaction with 1 input and two outputs
50 btc as the input, call this address A
49 btc as change (from a somewhat random address or group of addresses you own to a hidden address) call this address U
1 btc to the address you specified, call this address B

When transaction 1 is commited, I believe the input transaction is marked as spent, in this case, it's fine because 50btc was the only output of a previous transaction that is connected to the input of my "Transaction 1"

*** transaction 2 ***
So now I want to spend say 0.5 BTC.
The software only has two addresses it can possibly select 0.5BTC from, "U" and "B".
So it selects one of these outputs from Transaction 1 as the input for Transaction 2
creates a change output for transaction 2 called U2
sends 0.5BTC to my desired address C

This is where I think I'm missing something, because it seems to me that when transaction 2 is commited, it would mark transaction 1 as spent, but transaction 1 still has an unused output that is ours and is not spent.  I've looked thru the code I don't know how many times and I can't figure out how this case is handled.  Can someone point out my flaw? Smiley

Post
Topic
Board Development & Technical Discussion
Re: Testnet in a box
by
JollyGreen
on 16/03/2011, 07:40:29 UTC
is there a way to run the block explorer on the testbox setup you created?
Post
Topic
Board Development & Technical Discussion
Re: Testnet in a box
by
JollyGreen
on 16/03/2011, 07:02:27 UTC
Great Job!  Not your problem, but it's still kind of annoying at difficulty 1 it takes 1 hour to generate a block on a 1000khash/sec machine....

oh well, this should be faster than the current testnet.  Thanks
Post
Topic
Board Development & Technical Discussion
Re: Testnet in a box
by
JollyGreen
on 15/03/2011, 18:08:39 UTC
great idea, I'll try it out tonight!
Post
Topic
Board Development & Technical Discussion
Re: Order ID in a new transaction type?
by
JollyGreen
on 15/03/2011, 03:43:45 UTC
There is one issue that comes to my mind when considering messages stored in the block chain. The message is stored there forever, and readable to everyone whether the recipient wants it there or not.  I could write anything I want in my message and send it out.  Revealing the other users identity or email address, a negative feedback, whatever.  I guess it could be encrypted with the keys. 
Post
Topic
Board Development & Technical Discussion
Testnet broken?
by
JollyGreen
on 14/03/2011, 16:50:06 UTC
I went all night and my test net faucet transaction never came thru and it looks like no blocks have been generated!  Is this just because no one is generating on the testnet?  If no one is generating, should we send real BTC to miners that generate on the test network to create an incentive for them to do so?  I can only pull off 1khash/sec thru the bitcoin client, so it currently takes me 1 1/2+ days to generate a block.  Seems like it would be beneficial to have an active testnet for all the features everyone is working on.
Post
Topic
Board Development & Technical Discussion
Re: SSL again
by
JollyGreen
on 14/03/2011, 09:19:44 UTC
HTTPS is not default here. To have it, you need to explicit ask for it. People who don't even know what a certificate is would just remain in HTTP.

Ha, ok, I just realized that, so what are the advantages to SSL for this site?  I don't login to access secure info, so I'm not that worried, what are others concerns?
Post
Topic
Board Development & Technical Discussion
Re: SSL again
by
JollyGreen
on 14/03/2011, 06:42:09 UTC

To me that sounds pretty much as good as relying on a third party "certificate authority".


I agree it is basically the same, but the later doesn't scare people with a warning.  I think enough people would pitch in for the SSL cost to make the issue go away, if money is the only problem.  I'm not aware of the past history of this request though.
Post
Topic
Board Bitcoin Discussion
Re: How to prove that the sender for a payment was truly me?
by
JollyGreen
on 12/03/2011, 20:42:31 UTC
Let's say there is a scenario where I am one of two different people who claim to be responsible for sending bitcoins for a purchase.  How could I prove to the merchant that those bitcoins came from my wallet and nobody else's?

Something like this is possible (I've been thinking about doing it, although I have higher priority things on my TODO list):

  • Sophisticated user runs a tool on her computer that, giving the bitcoin address payment was sent to and "here's a description of me or what I paid for" string.  Tool looks in the wallet.dat and figure out which keypair(s) were used to pay.  Then it does some openssl magic and exports a file that contains the string, the public keys and ECDSA signatures using the private keys of the "description of me or what I paid for" string.
  • Sophisticated user uploads that file to a "Prove I Paid" website, which checks the signatures and adds info to the database.
  • Unsophisticated user goes to website and pastes the receiving address.  The public key corresponding to that address is looked up, and all the "here's a description of me or what I paid for" strings for that public key are shown.

bitcointools+openssl (see grondilu's thread about "a shell-script implementation of bitcoin) are enough to do all all the public/private key, file-creation, and signature generation/checking stuff.


Awesome idea, I've been thinking of different ways to do this, because it seems the thing holding bitcoin back the most is no ability to build up a web of trust without having +20 to nerd skills.  I think all of this could be made very easy for anyone to do thru the proper GUI, but it seems the easiest place to start would be to build a few basic commands into bitcoind so we don't have to have random tools looking thru peoples' wallets.  Does that sound good?

I would be interested in integrating these message signing commands into bitcoind, if you don't have time.
Post
Topic
Board Bitcoin Technical Support
macports bitcoin build failed
by
JollyGreen
on 10/03/2011, 08:25:35 UTC
All,

I appreciate the person who put bitcoin into macports, but I ran into an error while installing.  Maybe someone can help.

I'm using llvm-g++ installed by mac ports.  I think this is the issue, is there a certain version I should be using?  I ran into this same problem compiling the bitcoin client manually, without using mac ports.

Code:
llvm-g++ -c -mmacosx-version-min=10.5  -arch x86_64 -O3 -Wno-invalid-offsetof -Wformat -g -DwxDEBUG_LEVEL=0 -I/opt/local/lib/wx-devel/wx/include/osx_carbon-unicode-2.9 -I/opt/local/include/wx-devel/wx-2.9 -D_FILE_OFFSET_BITS=64 -DWXUSINGDLL -D__WXMAC__ -D__WXOSX__ -D__WXOSX_CARBON__  -D__WXMAC_OSX__ -DNOPCH -DMSG_NOSIGNAL=0 -DUSE_SSL -I/opt/local/include -I/opt/local/include/db48 -DGUI -o obj/util.o util.cpp
llvm-g++ -c -mmacosx-version-min=10.5  -arch x86_64 -O3 -Wno-invalid-offsetof -Wformat -g -DwxDEBUG_LEVEL=0 -I/opt/local/lib/wx-devel/wx/include/osx_carbon-unicode-2.9 -I/opt/local/include/wx-devel/wx-2.9 -D_FILE_OFFSET_BITS=64 -DWXUSINGDLL -D__WXMAC__ -D__WXOSX__ -D__WXOSX_CARBON__  -D__WXMAC_OSX__ -DNOPCH -DMSG_NOSIGNAL=0 -DUSE_SSL -I/opt/local/include -I/opt/local/include/db48 -DGUI -o obj/script.o script.cpp
cc1plus: error: unrecognized command line option "-arch"
cc1plus: error: unrecognized command line option "-arch"
make: *** [obj/script.o] Error 1
make: *** Waiting for unfinished jobs....
make: *** [obj/util.o] Error 1
Post
Topic
Board Development & Technical Discussion
How do I know who paid me?
by
JollyGreen
on 06/03/2011, 21:33:37 UTC
So lets say, I run a fictional ebay account selling goods to people and I want to accept BTC.  Everytime I make a sale and someone wants to pay me in BTC, I go into my Bitcoin client go to address book and click on receiving, and then select my ebay receiving BTC address.  I copy it to clipboard and email it off to the customer to pay me, and wait on their payment to arrive before I ship.

This is all fine and good until I have more than 1 customers who haven't paid.  I somehow need to verify which customers have paid and which ones have not.  But I cannot tell that by looking at the addresses of coins I receive via Bitcoin.  Okay, maybe the items cost different amounts and I can distinguish the orders by looking at the price, but say all the items cost $5.99 so price alone can't determine the customer.

Is there a solution to this problem?  Do I have to create a new address for every new order?
Post
Topic
Board Development & Technical Discussion
Re: Development roadmap
by
JollyGreen
on 05/03/2011, 22:14:30 UTC
What about adding the public/private mode like chrome/firefox?  It could default to privacy mode which would be the current setup, but could be toggled to public mode where you can have accounts where an address in that account can be used for both sending and receiving.  I think this would really simplify a lot of bitcoin, open it up to a much broader audience, and make room for a lot more services to build on top.

Post
Topic
Board Development & Technical Discussion
Re: Development roadmap
by
JollyGreen
on 05/03/2011, 18:59:11 UTC
I like the roadmap, and think the wallet backup/restore feature needs to be integrated quickly.  Right now, everyone has to be fairly computer savvy to backup and restore a wallet, seems like this is a feature everyone wants and should just take a couple clicks.  Password protecting everything would be a great idea too.

Has anyone else noticed the load time on at least Mac OSX is sometimes incredibly long?  30-60 seconds + before any sort of a GUI pops up?  Can whatever is being done be moved to happen after the GUI has loaded?  Maybe a progress bar?  I've almost force quit the application before, thinking it was locked up.
Post
Topic
Board Development & Technical Discussion
Bitcoin "From" address, can i change it?
by
JollyGreen
on 05/03/2011, 02:49:17 UTC
Hi All,

I was sending BTC to different friends, just playing around with the GUI and realized it doesn't seem I have control over which "from" address is used in a Send transaction.  Is this true?

Does anyone know how bitcoin determines which "from" address to assign to a send transaction?

JG
Post
Topic
Board Trading Discussion
Re: Mtgox offline?
by
JollyGreen
on 04/03/2011, 08:14:23 UTC
It doesn't give me confidence that (in addition to having security holes, issues with rounding errors, etc) Bitcoin's biggest exchange apparently doesn't know how to switch hosts without massive downtime.

+1  This is unacceptable, even with the host file workarounds and even though I'm not an active trader there.  It just doesn't give Bitcoin a serious image.

It gives Bitcoin a kind of wild west image.  I'm not sure if that's a bad thing.

To me, things like this remind me how pioneering the Bitcoin universe still is.

If you want to be where the exciting stuff is happening in history you can't expect everything to be safe and predictable.

As for "unacceptable", I was always aware that mtgox is a homebrew project like most Bitcoin businesses, and I am happy to keep supporting them/him nontheless. I never expected their reliability and security to be on a par with Bloomberg. 

agreed, he is dealing with a lot right now, he is doing a job i wouldn't touch with a 10ft pole Smiley
Post
Topic
Board Project Development
Re: Go to Wall St in Front of N.Y. Stock Exchange With Sandwich Billboard - 100BTC
by
JollyGreen
on 02/03/2011, 04:58:20 UTC
Where is the link to the video?