Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
38
LEAF_VERSION_TAPSIMPLICITY = 0xbe
39
40
def
hash160(s):
41
return
ripemd160(sha256(s))
42
43
def
bn2vch(v):
44
""
"Convert number to bitcoin-specific little endian format."
""
Callers
15
run_test
Method · 0.90
run_test
Method · 0.90
test_standardness_v0
Method · 0.90
test_uncompressed_pubkey
Method · 0.90
test_signature_version_1
Method · 0.90
test_non_standard_witness
Method · 0.90
prepare_tx_signed_with_sighash
Method · 0.90
key_to_p2pkh_script
Function · 0.90
script_to_p2sh_script
Function · 0.90
key_to_p2sh_p2wpkh_script
Function · 0.90
key_to_p2wpkh_script
Function · 0.90
key_to_p2pkh
Function · 0.70
Calls
2
ripemd160
Function · 0.90
sha256
Function · 0.70
Tested by
4
test_standardness_v0
Method · 0.72
test_uncompressed_pubkey
Method · 0.72
test_signature_version_1
Method · 0.72
test_non_standard_witness
Method · 0.72