Bitcoin Forum
May 09, 2024, 11:43:36 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: BitCoin Vending Machines  (Read 1514 times)
Peter Lambert (OP)
Hero Member
*****
Offline Offline

Activity: 756
Merit: 500

It's all fun and games until somebody loses an eye


View Profile
May 24, 2011, 08:58:40 PM
Last edit: February 27, 2013, 09:26:44 PM by Peter Lambert
 #1

The other day I was sitting in the break room, watching a co-worker vainly try over and over to get the vending machine to accept his wrinkly old dollar.  This got me to thinking about a vending machine accepting bitcoins, which would not have that particular problem.

So what would a bitcoin vending machine be like? Let me describe my idea:

You walk up to the machine, press a button labeled something like "Pay with BitCoins" and a screen lights up with a QR code. You then scan the code with your mobile phone app, which sends bitcoins to the machine's address. Since prices are so low for vending machines, it probably doesn't even have to wait for confirmations, as soon as it sees the 0.14 BTC transaction it lets you pick your item.

Sounds easy enough, right?

The limitation to that system is this only works for somebody who has a mobil phone with a bitcoin app. (There a few in the Android Marketplace for free, has anybody used them? Please let us know if they work)

On the back end, the vending machine would have to connect to the bitcoin network (Could it have a cell signal to connect?), I am not sure if it would be easier to have each machine running the bitcoin protocol, or to have a central server running a large number of machines and sending a signal to each machine when it has been paid?

Lets hear your thoughts!

-Peter-

Use CoinBR to trade bitcoin stocks: CoinBR.com

The best place for betting with bitcoin: BitBet.us
Bitcoin mining is now a specialized and very risky industry, just like gold mining. Amateur miners are unlikely to make much money, and may even lose money. Bitcoin is much more than just mining, though!
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
SgtSpike
Legendary
*
Offline Offline

Activity: 1400
Merit: 1005



View Profile
May 24, 2011, 09:01:11 PM
 #2

Would a payment propogate through the node quickly enough to make it practical for something like this?

Otherwise, with increased acceptance of bitcoins as a payment method, I could see this becoming very viable.
FreeMoney
Legendary
*
Offline Offline

Activity: 1246
Merit: 1014


Strength in numbers


View Profile WWW
May 24, 2011, 09:09:03 PM
 #3

http://forum.bitcoin.org/index.php?topic=423.0

Some relevant discussion here.

Play Bitcoin Poker at sealswithclubs.eu. We're active and open to everyone.
handburger
Newbie
*
Offline Offline

Activity: 23
Merit: 0


View Profile
May 24, 2011, 09:09:15 PM
 #4

Would a payment propogate through the node quickly enough to make it practical for something like this?

That is a good question. How fast do payments propagate? Has anybody ever timed a payment?

I had one take about 30 seconds to show up, and then 5 minutes for the first verification last night.  I've seen it much faster before though.
db
Sr. Member
****
Offline Offline

Activity: 279
Merit: 261



View Profile
May 24, 2011, 09:10:10 PM
 #5

It should work. You only have to look for double spends too and reject the transaction if any are seen. Here is another thread about it: Bitcoin snack machine (fast transaction problem)
SgtSpike
Legendary
*
Offline Offline

Activity: 1400
Merit: 1005



View Profile
May 24, 2011, 09:18:26 PM
 #6

Would a payment propogate through the node quickly enough to make it practical for something like this?

That is a good question. How fast do payments propagate? Has anybody ever timed a payment?
And better yet, is there a way to trace through the nodes from endpoint to endpoint to see how many "jumps" a transaction has to make before it reaches from one end to another?

It would be something like X = N/(8^X)... I think.  Where X = number of hops and N = number of nodes.

So say we have 50,000 people with nodes running.

X = 50,000/(8^X)
X(8^X) = 50,000
Uh...

It's been a while since I took a math class.  Tongue
jerfelix
Sr. Member
****
Offline Offline

Activity: 266
Merit: 250


View Profile
May 25, 2011, 12:21:11 AM
 #7

Would a payment propogate through the node quickly enough to make it practical for something like this?

That is a good question. How fast do payments propagate? Has anybody ever timed a payment?
And better yet, is there a way to trace through the nodes from endpoint to endpoint to see how many "jumps" a transaction has to make before it reaches from one end to another?

It would be something like X = N/N/(8^X)...  I think.  Where X = number of hops and N = number of nodes.

So say we have 50,000 people with nodes running.

X = 50,000/(8^X)
X(8^X) = 50,000
Uh...

It's been a while since I took a math class.  Tongue

The shortest number of paths would be approximately log( N )/log( 8 ).  So about 5.2 hops for 50,000 nodes of which each are connected to 8 non-repeating nodes.  I talk to 8, they talk to 64, they talk to 512, they talk to 4096, and they talk to 32,768, and 20% of them talk to the rest.

But with a mesh network, there would be a lot of overlap (I talk to a peer, who talks to a peer, who talks back to me, for instance).  There's probably a formula, and it's probabilistic, probably.  Smiley

I'd guess it's would average around 2x the above figure, so 10.4 hops. to reach everybody, on average, in a 50,000 node mesh network.


PS, the math is:
8 ^ X = N
log ( 8 ^ X ) = log ( N )
X log ( 8 ) = log ( N )
X = log ( N ) / log ( 8 )
Mike Hearn
Legendary
*
Offline Offline

Activity: 1526
Merit: 1129


View Profile
May 25, 2011, 07:29:38 AM
 #8

I think Stefan timed this a few weeks ago and found tx propagation was only a few seconds to reach nearly all of the network.

It'll start to slow down a lot if we begin reaching the limits of what a single machine can do, as it'll take a while for those nodes to get kicked off the network and be replaced by distributed supernodes. But we're a long way from that day yet, if it ever arrives at all.
luv2drnkbr
Hero Member
*****
Offline Offline

Activity: 793
Merit: 1016



View Profile
May 25, 2011, 11:13:58 AM
 #9

And better yet, is there a way to trace through the nodes from endpoint to endpoint to see how many "jumps" a transaction has to make before it reaches from one end to another?

It would be something like X = N/(8^X)... I think.  Where X = number of hops and N = number of nodes.

So say we have 50,000 people with nodes running.

X = 50,000/(8^X)
X(8^X) = 50,000
Uh...

It's been a while since I took a math class.  Tongue

X=4.481

No math necessary....   http://goo.gl/L2LOK

Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!