Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
Index your code
hub
/
github.com/jimmysong/programmingbitcoin
/ p2pkh_script
Function
p2pkh_script
code-ch13/script.py:24–26 ·
view source on GitHub ↗
Takes a hash160 and returns the p2pkh ScriptPubKey
(h160)
Source
from the content-addressed store, hash-verified
22
23
24
def
p2pkh_script(h160):
25
''
'Takes a hash160 and returns the p2pkh ScriptPubKey'
''
26
return
Script([0x76, 0xa9, h160, 0x88, 0xac])
27
28
29
def
p2sh_script(h160):
Callers
3
sig_hash_bip143
Method · 0.90
evaluate
Method · 0.70
test_address
Method · 0.70
Calls
1
Script
Class · 0.70
Tested by
1
test_address
Method · 0.56