Author

Topic: TX ID is the randomly generated .HOW? (Read 594 times)

legendary
Activity: 1890
Merit: 1086
Ian Knowles - CIYAM Lead Developer
February 19, 2013, 06: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).
legendary
Activity: 3472
Merit: 4801
February 19, 2013, 06: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?
legendary
Activity: 1890
Merit: 1086
Ian Knowles - CIYAM Lead Developer
February 19, 2013, 06: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.
legendary
Activity: 3472
Merit: 4801
February 19, 2013, 05: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?
member
Activity: 117
Merit: 10
Not only FUD :)
February 19, 2013, 04:48:10 AM
#1
TX ID is the randomly generated .HOW? What is the relevant code?
Jump to: