Browse Source

SHA256 -> RIPEMD160

pull/1500/head
Ethan Buchman 6 years ago
parent
commit
e5951acfb4
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      docs/specification/new-spec/encoding.md

+ 2
- 2
docs/specification/new-spec/encoding.md 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))
}
```


Loading…
Cancel
Save