diff --git a/pkg/crypto/hash/hash.go b/pkg/crypto/hash/hash.go index af77d8f58..9be7f65ee 100644 --- a/pkg/crypto/hash/hash.go +++ b/pkg/crypto/hash/hash.go @@ -37,13 +37,10 @@ func RipeMD160(data []byte) util.Uint160 { // Hash160 performs sha256 and then ripemd160 // on the given data. func Hash160(data []byte) util.Uint160 { - var hash util.Uint160 - h1 := Sha256(data) h2 := RipeMD160(h1.BytesBE()) - hash, _ = util.Uint160DecodeBytesBE(h2.BytesBE()) - return hash + return h2 } // Checksum returns the checksum for a given piece of data