Pages:
Author

Topic: Heads or Tails? (Read 1892 times)

sr. member
Activity: 364
Merit: 252
September 18, 2012, 04:12:15 AM
#25
according to our game there is a 1/100 chance of it landing on its side Tongue
sr. member
Activity: 434
Merit: 250
100%
September 17, 2012, 09:15:46 PM
#24
Ingenious.

sr. member
Activity: 448
Merit: 252
September 17, 2012, 12:47:07 PM
#23
Yeah that's what I expected. It really does look like a transaction doesn't offer data random enough for a reliable coinflip. What a bummer, really.

Out of pure interest:
where does a block get its timestamp from?

According to Joel Katz in this thread, miners/pools set the timestamp.  The Satoshi client seems to require blocks broadcast to be not more than 2 hours into the future, and not earlier than the median of the last 11 blocks' timestamps.
sr. member
Activity: 434
Merit: 250
100%
September 17, 2012, 06:56:32 AM
#22
Yeah that's what I expected. It really does look like a transaction doesn't offer data random enough for a reliable coinflip. What a bummer, really.

Out of pure interest:
where does a block get its timestamp from?

sr. member
Activity: 448
Merit: 252
September 17, 2012, 01:31:17 AM
#21
scintill,

blockchain.info offers a "Time received" for each transaction. Any chance it gets that info from the blockchain? (But it doesn't seem like it does to me)

Blocks have a timestamp, but that time is probably taken from when blockchain.info's node(s) first saw the transaction, as they do for IP addresses they saw blocks/transactions from.
sr. member
Activity: 434
Merit: 250
100%
September 16, 2012, 11:07:03 PM
#20
scintill,

blockchain.info offers a "Time received" for each transaction. Any chance it gets that info from the blockchain? (But it doesn't seem like it does to me)

sr. member
Activity: 448
Merit: 252
September 16, 2012, 09:43:06 PM
#19
^if that were the case then using the same inputs and outputs with the same send amounts twice would also generate the same txid twice. but that can't be.

what makes a txid unique?

The fact that you can't use the same input(s) twice -- that's what a double spend is.  An input comes from someone else paying you (or coins being generated), and can only be spent once, spending the whole value at that time. 

If you don't want to actually spend the whole value to other people, you can send the change back to yourself at a "change address."  (Clients do it automatically.)  That change address can then be used as the input for another transaction.
sr. member
Activity: 434
Merit: 250
100%
September 16, 2012, 03:51:06 PM
#18
^if that were the case then using the same inputs and outputs with the same send amounts twice would also generate the same txid twice. but that can't be.

what makes a txid unique?




sr. member
Activity: 448
Merit: 252
September 16, 2012, 01:06:45 PM
#17
Wait a minute.

Would coin tossing with a bitcoin transaction actually be possible?

Couldn't you use any random data generated by a transaction to determine either state '1' or '0'? One that's publicly visible and unpredictable of course.

Maybe. I don't see how you'd get the data to stay on the kip and the flip effectively. It would totally suck for two-up. I'm sticking with the old pennies.

Isn't a transaction ID created at random?

Couldn't you use that to determine 1/0?

in order to calculate the ID hash of the Tx that is used in the Merkle Tree, one needs to SHA hash the whole Tx message as defined in the Protocol Specification wiki page twice.

So, it is not "random" per se.  Since the creator of the transaction has some choice of what inputs to use and complete control of what outputs to use, they could keep trying different combinations until they got a txid meeting certain criteria (such as being even or odd, for a coin flip.)

Edit: yes, more involved criteria for the txid are harder to find (it takes more tries), but even/odd is easy.
sr. member
Activity: 434
Merit: 250
100%
September 16, 2012, 11:57:01 AM
#16
Wait a minute.

Would coin tossing with a bitcoin transaction actually be possible?

Couldn't you use any random data generated by a transaction to determine either state '1' or '0'? One that's publicly visible and unpredictable of course.




Maybe. I don't see how you'd get the data to stay on the kip and the flip effectively. It would totally suck for two-up. I'm sticking with the old pennies.

Isn't a transaction ID created at random?

Couldn't you use that to determine 1/0?

donator
Activity: 2058
Merit: 1007
Poor impulse control.
September 16, 2012, 03:16:23 AM
#15
Wait a minute.

Would coin tossing with a bitcoin transaction actually be possible?

Couldn't you use any random data generated by a transaction to determine either state '1' or '0'? One that's publicly visible and unpredictable of course.




Maybe. I don't see how you'd get the data to stay on the kip and the flip effectively. It would totally suck for two-up. I'm sticking with the old pennies.
sr. member
Activity: 434
Merit: 250
100%
September 15, 2012, 03:22:23 PM
#14
Wait a minute.

Would coin tossing with a bitcoin transaction actually be possible?

Couldn't you use any random data generated by a transaction to determine either state '1' or '0'? One that's publicly visible and unpredictable of course.


newbie
Activity: 42
Merit: 0
September 15, 2012, 02:27:50 AM
#13
rolls under the sofa, almost every single time ... I suck at coin flipping -.-
legendary
Activity: 2212
Merit: 1001
April 12, 2012, 06:03:06 PM
#12
Stupid question, but which side is heads, again?
Which side do you think it is?  Tongue

OK, you got me! I'll admit I have no idea which side heads is. Doesn't it depend on the current difficulty? Or network hashrate? Or something?
I suppose the analogy could be extended to such things, or even trading price. But then we would be speculating and that is yet another coin toss.

Well,when I "flip" my coins,I always get more of em  Grin
donator
Activity: 2058
Merit: 1007
Poor impulse control.
April 12, 2012, 05:17:09 PM
#11
Stupid question, but which side is heads, again?
Which side do you think it is?  Tongue

OK, you got me! I'll admit I have no idea which side heads is. Doesn't it depend on the current difficulty? Or network hashrate? Or something?
I suppose the analogy could be extended to such things, or even trading price. But then we would be speculating and that is yet another coin toss.

Analogy? You've stumped me again. I just wanted to play two-up with my bitcoins on the 25th. I'll need to know which side is heads.
donator
Activity: 1736
Merit: 1006
Let's talk governance, lipstick, and pigs.
April 12, 2012, 01:45:18 PM
#10
Stupid question, but which side is heads, again?
Which side do you think it is?  Tongue

OK, you got me! I'll admit I have no idea which side heads is. Doesn't it depend on the current difficulty? Or network hashrate? Or something?
I suppose the analogy could be extended to such things, or even trading price. But then we would be speculating and that is yet another coin toss.
full member
Activity: 168
Merit: 100
April 12, 2012, 11:04:50 AM
#9
OK, you got me! I'll admit I have no idea which side heads is. Doesn't it depend on the current difficulty? Or network hashrate? Or something?

you think that is bitcoin that you are seeing? hmm... (c) senzonbakura

marked
donator
Activity: 2058
Merit: 1007
Poor impulse control.
April 12, 2012, 10:26:35 AM
#8
Stupid question, but which side is heads, again?
Which side do you think it is?  Tongue

OK, you got me! I'll admit I have no idea which side heads is. Doesn't it depend on the current difficulty? Or network hashrate? Or something?
donator
Activity: 1736
Merit: 1006
Let's talk governance, lipstick, and pigs.
April 12, 2012, 09:02:27 AM
#7
Stupid question, but which side is heads, again?
Which side do you think it is?  Tongue
donator
Activity: 2058
Merit: 1007
Poor impulse control.
April 12, 2012, 08:52:21 AM
#6
Stupid question, but which side is heads, again?
Pages:
Jump to: