MCPcopy Index your code
hub / github.com/petertodd/python-bitcoinlib / Hash160

Function Hash160

bitcoin/core/serialize.py:32–34  ·  view source on GitHub ↗

RIPEME160(SHA256(msg)) -> bytes

(msg)

Source from the content-addressed store, hash-verified

30 return hashlib.sha256(hashlib.sha256(msg).digest()).digest()
31
32def Hash160(msg):
33 """RIPEME160(SHA256(msg)) -> bytes"""
34 return ripemd160(hashlib.sha256(msg).digest())
35
36class SerializationError(Exception):
37 """Base class for serialization errors"""

Callers 3

spend-p2wpkh.pyFile · 0.90
make_scriptsFunction · 0.85

Calls 1

ripemd160Function · 0.90

Tested by

no test coverage detected