Bitcoin Institute

bitcoind transaction to ip address

9 messages BitcoinTalk lfm, Satoshi Nakamoto, Michael Mancil Brown, Laszlo Hanyecz, Insti, Andrew LeCody August 5, 2010 — August 16, 2010
lfm August 5, 2010 14:22 UTC Link to this message

I cant figure out how to send a transaction to an ip address from bitcoind command line interface. Has the function been implemented yet? (linux 64 if it matters)

It’s not implemented.

It turned out nobody liked that mode of transfer anyway, so it hasn’t had much development attention.

Quote from: satoshi on August 05, 2010, 5:28:40 PM UTC

It’s not implemented.

It turned out nobody liked that mode of transfer anyway, so it hasn’t had much development attention.

Well I guess it’s time it got some attention 😉

Dang, that’s two things I have to put my list now, good thing it’s open source! 😄

If someone takes the ip address method to the next level it really should be changed to provide some kind of security, like agree on a password/address or something ahead of time. Sending to an address and creating the key automatically provides no authentication and there’s no recourse if it went to the wrong place; the intended receiver is unaware you even tried to send anything. It is trivial to proxy it and MITM that kind of activity and with the value of bitcoins rising it might just be worth doing eventually.

I consider the ip address sending a local testing feature more than a production level feature in the way it is currently implemented. One possibility that could work is if the receiver provided a public key (address) to you first and you used a combination of internet address and public key. It is not as convenient but the alternative is to just send it to the ether and hope nobody grabs it before it gets to your target. If anyone has used liberty reserve or something similar you know it is certainly not convenient to log into and such, but when it comes down to a choice of losing your money or dealing with an inconvenience I think most people would prefer the latter.

Quote from: Laszlo Hanyecz on August 06, 2010, 1:19:12 AM UTC

If someone takes the ip address method to the next level it really should be changed to provide some kind of security, like agree on a password/address or something ahead of time. Sending to an address and creating the key automatically provides no authentication and there’s no recourse if it went to the wrong place; the intended receiver is unaware you even tried to send anything. It is trivial to proxy it and MITM that kind of activity and with the value of bitcoins rising it might just be worth doing eventually.

What if it had a flag for “secure/unsecure” transaction type, where one can have a password for static IP to static IP transactions and an unsecure mode that works like the default IP sending the GUI uses?

Laszlo Hanyecz

I consider the ip address sending a local testing feature more than a production level feature in the way it is currently implemented. One possibility that could work is if the receiver provided a public key (address) to you first and you used a combination of internet address and public key. It is not as convenient but the alternative is to just send it to the ether and hope nobody grabs it before it gets to your target. If anyone has used liberty reserve or something similar you know it is certainly not convenient to log into and such, but when it comes down to a choice of losing your money or dealing with an inconvenience I think most people would prefer the latter.

If the address based transactions types could send the comments/from field like the direct IP to IP, that would be another reason not to really use the feature (except for testing) 😉

Insti August 6, 2010 08:01 UTC Link to this message

Why is ip to ip a useful way to make a transaction?

Insti August 6, 2010 08:41 UTC Link to this message
Quote from: knightmb on August 06, 2010, 8:13:24 AM UTC

Why is ip to ip a useful way to make a transaction?

From and Comment fields

Right now, if you transfer from one address to another, well that’s about all the info you get, client ABC transfered 5BTC to client XYZ.

With IP to IP, it would be more like Client ABC transfered 5BTC to Client XYZ, and add extra data like “for a lotto number or stock buy or store purchase, etc.”

This would allow website operators to accept transactions with custom data that can be used to further process for other things.

Example; I run a website where if you send me 10 BTC, I’ll e-mail back a copy of an e-book. You could use the client “from address” field to plug in your e-mail so that when the 10BTC comes in, the website will know that it just got a payment and send the e-book to the return e-mail address automatically.

Another use is payment documentation. I transfer 100BTC to XYZ person and put in a comment of what it was for “paid 100BTC for a new video card”.

This seems like the “wrong” way to be doing things. Your webserver should be capturing all these details and generating a unique receiving address. So you know what a transaction to XYZ is for and who it is from. Then you just need your webserver to query your bitcoind to see if transaction XYZ for 10BTC has occurred.

Insti August 6, 2010 11:33 UTC Link to this message
Quote from: knightmb on August 06, 2010, 9:54:46 AM UTC

Per the example, how would that process work with what you suggested? How are you going to predict what address they send payment to you as?

I think we are looking at things slightly differently.

This is how I think you are thinking about your process.

Your shop publishes an address: A_SHOP Customer does a bitcoin transaction from A_CUST to A_SHOP for 9.95 and passes extra parameters ‘from: customer@email.address’ and ‘for: your cool ebook’ Your bitcoin payment system picks up this this transaction. Your system sends ‘cool ebook’ to ‘customer@email.address’

Another Customer does a bitcoin transaction from A_BOB to A_SHOP for 9.95 ‘from: bob@somewhere.else’ ‘for: audiobook version’ Your bitcoin payment system picks up this this transaction. Your system sends ‘audiobook’ to ‘bob@somewhere.else’

In my proposed system it works like a traditional shopping cart/checkout system:

Customer comes to your shop. Clicks the ‘buy cool ebook button’ Fills our their delivery address on a web form. You create a unique receiving address for this transaction: A_UNIQUE1 You note this mapping in your database. A_UNIQUE1 is 9.95 payment from ‘customer@email.address’ buying ‘your cool ebook’ Your website then presents the customer with the address A_UNIQUE1 Customer does a bitcoin transaction however they like for 9.95 to A_UNIQUE1 Your bitcoin payment system picks up this this transaction. Your system sends ‘cool ebook’ to ‘customer@email.address’

Bob comes to your shop. Clicks on the ‘buy audiobook button’ Fills our their delivery address on a web form. You create a unique receiving address for this transaction: A_UNIQUE2 You note this mapping in your database. Your website then presents the customer with the address A_UNIQUE2 Bob does a bitcoin transaction however they like for 9.95 to A_UNIQUE2 Your bitcoin payment system picks up this this transaction. Your system sends ‘audiobook’ to ‘bob@somewhere.else’

Is that clearer?

The advantages of doing things this way are that you have control over the information that the customer is sending you before they actually send it. If you decide to sell tshirts and need to include a ‘size’ field you can easily add this on your web end. If they’re trying to buy something that is out of stock, or if they are below the legal age you can deny the transaction and not give them an address to send to.

PM me if you need any help implementing such a system.

I would love to see a bitcoin module for WHMCS (http://www.whmcs.com/).