hash: avoid allocation in RipeMD160 calculation
This commit is contained in:
parent
53cfde62de
commit
41ab7a85a7
1 changed files with 1 additions and 1 deletions
|
@ -53,7 +53,7 @@ func RipeMD160(data []byte) util.Uint160 {
|
||||||
hasher := ripemd160.New()
|
hasher := ripemd160.New()
|
||||||
_, _ = hasher.Write(data)
|
_, _ = hasher.Write(data)
|
||||||
|
|
||||||
hash, _ = util.Uint160DecodeBytesBE(hasher.Sum(nil))
|
hasher.Sum(hash[:0])
|
||||||
return hash
|
return hash
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue