Author

Topic: Are transaction IDs random(ish)? (Read 1345 times)

legendary
Activity: 2506
Merit: 1010
September 21, 2012, 12:25:33 AM
#6
You can fabricate a transaction ID, so there is no guarantee that the transaction id is random.

How much control can you have?  It's a matter of brute force: repeatedly changing inputs and outputs, creating the txid, and seeing if it's what you want, right?


Essentially, yes:

 - https://bitcointalksearch.org/topic/m.649253
 - http://bitcoin.stackexchange.com/a/2233/153
newbie
Activity: 14
Merit: 0
September 20, 2012, 03:47:37 PM
#5
You can fabricate a transaction ID, so there is no guarantee that the transaction id is random.

How much control can you have?  It's a matter of brute force: repeatedly changing inputs and outputs, creating the txid, and seeing if it's what you want, right?

I beleive this is the case.
sr. member
Activity: 448
Merit: 254
September 20, 2012, 02:52:36 PM
#4
You can fabricate a transaction ID, so there is no guarantee that the transaction id is random.

How much control can you have?  It's a matter of brute force: repeatedly changing inputs and outputs, creating the txid, and seeing if it's what you want, right?
legendary
Activity: 1137
Merit: 1001
September 20, 2012, 02:17:12 PM
#3
You can fabricate a transaction ID, so there is no guarantee that the transaction id is random.

Thank you.
legendary
Activity: 2506
Merit: 1010
September 20, 2012, 01:36:23 PM
#2

By random, I mean not predictable. I ask because SatoshiDice takes the hash of a txid. Would it be possible for someone to calculate the id (or part of an ID) before sending? Why doesn't SD just use the txid?

You can fabricate a transaction ID, so there is no guarantee that the transaction id is random.

The reason it doesn't matter to SatoshiDICE is because the bettor doesn't know the secret used in determining the resulting answer (a number, from zero to 65,535).  If just one bit to the transaction ID is different from another, the resulting answer ends up being a totally different number that is random(ish)ly generated.

At the end of each day, the daily secret that was used can be safely revealed, providing a method for the bettor (or anyone else) to verify the that each bet was addressed fairly.

Here's a thread addressing the use of SHA hashing as random number generation:

 - https://bitcointalksearch.org/topic/using-sha512-hash-as-random-number-generator-for-gambling-services-77206
legendary
Activity: 1137
Merit: 1001
September 20, 2012, 01:21:53 PM
#1

By random, I mean not predictable. I ask because SatoshiDice takes the hash of a txid. Would it be possible for someone to calculate the id (or part of an ID) before sending? Why doesn't SD just use the txid?
Jump to: