MCPcopy Create free account
hub / github.com/ElementsProject/elements / hash160

Function hash160

test/functional/test_framework/script.py:40–41  ·  view source on GitHub ↗
(s)

Source from the content-addressed store, hash-verified

38LEAF_VERSION_TAPSIMPLICITY = 0xbe
39
40def hash160(s):
41 return ripemd160(sha256(s))
42
43def bn2vch(v):
44 """Convert number to bitcoin-specific little endian format."""

Callers 15

run_testMethod · 0.90
run_testMethod · 0.90
test_standardness_v0Method · 0.90
key_to_p2pkh_scriptFunction · 0.90
script_to_p2sh_scriptFunction · 0.90
key_to_p2wpkh_scriptFunction · 0.90
key_to_p2pkhFunction · 0.70

Calls 2

ripemd160Function · 0.90
sha256Function · 0.70

Tested by 4

test_standardness_v0Method · 0.72