Author

Topic: Can TXID be caculated before TX commited? (Read 1020 times)

legendary
Activity: 2058
Merit: 1431
May 18, 2013, 11:04:51 PM
#4
So we can still have a hash set to choose from by select different vin or nLockTime without ruin a transaction.
yes. you can change the txids as much times as you want, but there's no easy way to get a specific txid.
newbie
Activity: 29
Merit: 0
Hello all!
Is TXID predictable before transaction broadcast to peers?
Or in other words,can someone choose a certain txid he want when broadcast a transaction?

Hi!

Yes, it's a hash based on the content of the transaction. See the bitcoin wiki or this question:
http://bitcoin.stackexchange.com/questions/2859/how-are-transaction-hashes-calculated

The answer to the second question is no. Furthermore that would be an undesirable feature of a hash function. See "preimage attack".
So we can still have a hash set to choose from by select different vin or nLockTime without ruin a transaction.
newbie
Activity: 7
Merit: 0
Hello all!
Is TXID predictable before transaction broadcast to peers?
Or in other words,can someone choose a certain txid he want when broadcast a transaction?

Hi!

Yes, it's a hash based on the content of the transaction. See the bitcoin wiki or this question:
http://bitcoin.stackexchange.com/questions/2859/how-are-transaction-hashes-calculated

The answer to the second question is no. Furthermore that would be an undesirable feature of a hash function. See "preimage attack".
newbie
Activity: 29
Merit: 0
Hello all!
Is TXID predictable before transaction broadcast to peers?
Or in other words,can someone choose a certain txid he want when broadcast a transaction?
Jump to: