Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
110 lines (78 sloc) 4.07 KB
1.0: Take TXID:
=>TXID: f7a17583169bcd6075c311b1aeff1a8d12917de5917f4dbba9e21e95f3a8e711
1.1: Take id as String (_idtoString)
=>_idtoString: 1
1.2: Take Total Roll as String (_totaltoString)
=>_totaltoString: 73
1.3: Create Unique String by appending (id+total)
=>step1String: _id_total
Example:
ID: 1, Total: 73
173
1.4: Create 2nd Unique String by appending (_idtoString+_id_total+_totaltoString)
=>step2String: (_idtoString+_id_total+_totaltoString)
Example:
ID: 1, Total: 73 IDTOTAL: 173
117373
1.4: Hash (ID: 1) to SHA256
=>_idtoSHA256: 6b86b273ff34fce19d6b804eff5a3f5747ada4eaa22f1d49c01e52ddb7875b4b
1.5: (Hash Total Roll: 73) to SHA256
=>_totaltoSHA256: 96061e92f58e4bdcdee73df36183fe3ac64747c81c26f6c83aada8d2aabb1864
1.6:
stringtoHash1(Hash of 173): 4a8596a7790b5ca9e067da401c018b3206befbcf95c38121854d1a0158e7678a
1.7:
stringtoHash2(Hash of 117373): 806167db93ac9233507b7f58ec9ae30050d15d79a9eeef83fbf305df7908714b
2: Create hashString1 by appending (id+stringtoHash1+total)
=> hashString1: 1 4a8596a7790b5ca9e067da401c018b3206befbcf95c38121854d1a0158e7678a 73
Example:
14a8596a7790b5ca9e067da401c018b3206befbcf95c38121854d1a0158e7678a73
=
ca25b7bf3e33df744baacab844ef95564a8d9712450a2fdf666d95ed4098b781
3. Create hashString2 by appending (_idtoSHA256+step1.4String+_totaltoSHA256)
=>hashString2: (_idtoSHA256+step1.4String+_totaltoSHA256)
Example:
6b86b273ff34fce19d6b804eff5a3f5747ada4eaa22f1d49c01e52ddb7875b4b 117373 96061e92f58e4bdcdee73df36183fe3ac64747c81c26f6c83aada8d2aabb1864
6b86b273ff34fce19d6b804eff5a3f5747ada4eaa22f1d49c01e52ddb7875b4b11737396061e92f58e4bdcdee73df36183fe3ac64747c81c26f6c83aada8d2aabb1864
=
0b26885dc7a81a4d6f3c4505ae51812f1c3ee26b95a3fad62723e48332ac478a
4. Create hasString3 by appending (hashString1+hashString2)
=>hashString3: (hashString1+hashString2)
Example:
ca25b7bf3e33df744baacab844ef95564a8d9712450a2fdf666d95ed4098b781 0b26885dc7a81a4d6f3c4505ae51812f1c3ee26b95a3fad62723e48332ac478a
ca25b7bf3e33df744baacab844ef95564a8d9712450a2fdf666d95ed4098b7810b26885dc7a81a4d6f3c4505ae51812f1c3ee26b95a3fad62723e48332ac478a
=
4ce6ce3e339161df999c9e0bec8edcca0f5a16aef4092649ef710b4d997f92e2
5. Create hashString4 by Hashing hashString2 again:
=>hashstring4: SHA256(hashString2)
Example: 0b26885dc7a81a4d6f3c4505ae51812f1c3ee26b95a3fad62723e48332ac478a
=
1e6643ebb50ae00f8cb4e46f4a0dc03b053b1284efa39bfbff8d3b66abea85fa
6. Create hasString5 by Hashing hashString3 again:
=>hashString5: SHA256(hashString3)
Example: 4ce6ce3e339161df999c9e0bec8edcca0f5a16aef4092649ef710b4d997f92e2
=
777a993ec1e906890f60b5a1c77c561b5edadf5dc5a3a9208196dab712de832d
7. Create hashString6 by appending (hashString4+hashString5)
=>hashString6: (hashString4+hashString5)
Example:
1e6643ebb50ae00f8cb4e46f4a0dc03b053b1284efa39bfbff8d3b66abea85fa 777a993ec1e906890f60b5a1c77c561b5edadf5dc5a3a9208196dab712de832d
1e6643ebb50ae00f8cb4e46f4a0dc03b053b1284efa39bfbff8d3b66abea85fa777a993ec1e906890f60b5a1c77c561b5edadf5dc5a3a9208196dab712de832d
=
318d546656dc9ae960c31acc0662a88910bac883733148ae055df0bc8a1aec93
7.1: Create hashFinal by Hashing hashString6 again:
=>hashFinal: SHA256(hashString6)
Example:
318d546656dc9ae960c31acc0662a88910bac883733148ae055df0bc8a1aec93
=
7c8f743d020153d61073e0a52d9d65fce2a5ca1a0e49ac4b37d5ab1c75a19f86
7.2: Append TXID to hashFinal where TXID never repeats and doubleHash it: (TXID+hashFinal)
=>doubleSHA256(TXID+hashFinal):
= SHA256(TXID+hashFinal)
= Sha256(SHA256(TXID+hashFinal));
Example:
f7a17583169bcd6075c311b1aeff1a8d12917de5917f4dbba9e21e95f3a8e711 7c8f743d020153d61073e0a52d9d65fce2a5ca1a0e49ac4b37d5ab1c75a19f86
f7a17583169bcd6075c311b1aeff1a8d12917de5917f4dbba9e21e95f3a8e7117c8f743d020153d61073e0a52d9d65fce2a5ca1a0e49ac4b37d5ab1c75a19f86
=
fe1f796962b9b5b96d69918205cc099621646c1605661f6c37e8baf83c048ac8
=
77d73600062cc7e4e27398bb15cf176cf0cf89ab1c2f6b7dcb0dd0e961493006