Post
Topic
Board Announcements (Altcoins)
Re: NXT :: descendant of Bitcoin - Updated Information
by
BloodyRookie
on 11/02/2014, 19:43:04 UTC
The hash of the transaction already serves as ID_2 as far as I remember.

It includes signature bytes.

No. Here is the method getHash from Transaction.java (version 0.6.2):

Quote
String getHash()
{
     if (this.hash == null)
     {
       byte[] arrayOfByte = getBytes();
       for (int i = 64; i < 128; i++) {
         arrayOfByte = 0;
       }
       this.hash = Convert.convert(Crypto.sha256().digest(arrayOfByte));
     }
     return this.hash;
}