SHA256 -> RIPEMD160

This commit is contained in:
Ethan Buchman
2018-04-26 11:46:50 -04:00
parent 0e1414ef9d
commit e5951acfb4
+2 -2
View File
@@ -201,7 +201,7 @@ func MakeParts(obj interface{}, partSize int) []Part
Simple Merkle trees are used in numerous places in Tendermint to compute a cryptographic digest of a data structure.
SHA256 is always used as the hashing function.
RIPEMD160 is always used as the hashing function.
### Simple Merkle Root
@@ -224,7 +224,7 @@ func SimpleMerkleRoot(hashes [][]byte) []byte{
func SimpleConcatHash(left, right []byte) []byte{
left = encodeByteSlice(left)
right = encodeByteSlice(right)
return SHA256(append(left, right))
return RIPEMD160 (append(left, right))
}
```