Bitcoin Forum
May 28, 2024, 07:30:34 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: TX ID is the randomly generated .HOW?  (Read 594 times)
maomao (OP)
Member
**
Offline Offline

Activity: 117
Merit: 10

Not only FUD :)


View Profile
February 19, 2013, 09:48:10 AM
 #1

TX ID is the randomly generated .HOW? What is the relevant code?

quarkchain.io
DannyHamilton
Legendary
*
Offline Offline

Activity: 3402
Merit: 4656



View Profile
February 19, 2013, 10:57:26 AM
 #2

I don't believe that the transaction ID is randomly generated.  I'm pretty sure it's a SHA-256 hash of the transaction itself.  Is there a reason you believe it's random?
CIYAM
Legendary
*
Offline Offline

Activity: 1890
Merit: 1078


Ian Knowles - CIYAM Lead Developer


View Profile WWW
February 19, 2013, 11:03:36 AM
 #3

What the OP might be referring to is that when a tx is "signed" a timestamp (or similar) is included - thus if you re-signed an identical tx it would not have the same tx id.

With CIYAM anyone can create 100% generated C++ web applications in literally minutes.

GPG Public Key | 1ciyam3htJit1feGa26p2wQ4aw6KFTejU
DannyHamilton
Legendary
*
Offline Offline

Activity: 3402
Merit: 4656



View Profile
February 19, 2013, 11:13:52 AM
 #4

What the OP might be referring to is that when a tx is "signed" a timestamp (or similar) is included - thus if you re-signed an identical tx it would not have the same tx id.

Is this true? I'm not aware of a timestamp in the transaction.  If you re-sign an identical transaction I'd expect you'd get an identical transaction ID, no?
CIYAM
Legendary
*
Offline Offline

Activity: 1890
Merit: 1078


Ian Knowles - CIYAM Lead Developer


View Profile WWW
February 19, 2013, 11:42:00 AM
 #5

What the OP might be referring to is that when a tx is "signed" a timestamp (or similar) is included - thus if you re-signed an identical tx it would not have the same tx id.

Is this true? I'm not aware of a timestamp in the transaction.  If you re-sign an identical transaction I'd expect you'd get an identical transaction ID, no?

Can't verify this at the moment (am on holiday) but am fairly certain that I've done this with offline tx's before (i.e. signing the same tx twice and ended up with a different tx id the second time).

With CIYAM anyone can create 100% generated C++ web applications in literally minutes.

GPG Public Key | 1ciyam3htJit1feGa26p2wQ4aw6KFTejU
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!