Bitcoin Forum
May 01, 2024, 03:48:02 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Can TXID be caculated before TX commited?  (Read 1000 times)
wangsw (OP)
Newbie
*
Offline Offline

Activity: 29
Merit: 0


View Profile
May 18, 2013, 03:17:51 AM
 #1

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?
1714578482
Hero Member
*
Offline Offline

Posts: 1714578482

View Profile Personal Message (Offline)

Ignore
1714578482
Reply with quote  #2

1714578482
Report to moderator
The grue lurks in the darkest places of the earth. Its favorite diet is adventurers, but its insatiable appetite is tempered by its fear of light. No grue has ever been seen by the light of day, and few have survived its fearsome jaws to tell the tale.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
kfreds
Newbie
*
Offline Offline

Activity: 7
Merit: 0


View Profile
May 18, 2013, 02:38:21 PM
 #2

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".
wangsw (OP)
Newbie
*
Offline Offline

Activity: 29
Merit: 0


View Profile
May 19, 2013, 02:55:34 AM
 #3

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.
grue
Legendary
*
Offline Offline

Activity: 2058
Merit: 1431



View Profile
May 19, 2013, 03:04:51 AM
 #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.

It is pitch black. You are likely to be eaten by a grue.

Adblock for annoying signature ads | Enhanced Merit UI
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!