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

Function get_p2pkh_script

test/functional/feature_sighash_rangeproof.py:42–44  ·  view source on GitHub ↗

Get the script associated with a P2PKH.

(pubkeyhash)

Source from the content-addressed store, hash-verified

40from test_framework.blocktools import add_witness_commitment
41
42def get_p2pkh_script(pubkeyhash):
43 """Get the script associated with a P2PKH."""
44 return CScript([CScriptOp(OP_DUP), CScriptOp(OP_HASH160), pubkeyhash, CScriptOp(OP_EQUALVERIFY), CScriptOp(OP_CHECKSIG)])
45
46class SighashRangeproofTest(BitcoinTestFramework):
47 def set_test_params(self):

Callers 1

Calls 2

CScriptClass · 0.90
CScriptOpClass · 0.90

Tested by

no test coverage detected