3
0
mirror of https://github.com/Qortal/AT.git synced 2025-01-30 19:02:14 +00:00
AT/Java
catbref 36029c132f Changed FunctionCodes that perform hashes to use variable-length data.
Before, hashing functions (e.g. MD5_A_INTO_B) would hash immediate
data stored in A, putting the result into B.

Also, that hash function would only hash the same number of bits as
the hash output. For example, MD5_A_INTO_B would only hash the
16 bytes in A1 & A2.

Now, hash functions use data-page offset stored in A1 and byte-length
stored in A2.

Renamed HASH160 to RMD160 and created new HASH160 which performs
Bitcoin's double hash of RMD160(SHA256(data)).

Refactored & added tests to cover.
2020-02-28 17:11:53 +00:00
..
src Changed FunctionCodes that perform hashes to use variable-length data. 2020-02-28 17:11:53 +00:00
.gitignore Updated for Java 11 & other improvements 2019-11-20 11:06:57 +00:00
maven-import.txt Updated for Java 11 & other improvements 2019-11-20 11:06:57 +00:00
pom.xml Updated for Java 11 & other improvements 2019-11-20 11:06:57 +00:00