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

Function script_to_p2wsh

test/functional/test_framework/address.py:133–135  ·  view source on GitHub ↗
(script, main=False)

Source from the content-addressed store, hash-verified

131 return encode_segwit_address(hrp, version, program)
132
133def script_to_p2wsh(script, main=False):
134 script = check_script(script)
135 return program_to_witness(0, sha256(script), main)
136
137def key_to_p2wpkh(key, main=False, **kwargs):
138 key = check_key(key)

Callers 5

run_testMethod · 0.90
test_signing_with_csvMethod · 0.90
get_multisigFunction · 0.90
create_witness_txFunction · 0.70

Calls 3

check_scriptFunction · 0.70
program_to_witnessFunction · 0.70
sha256Function · 0.70

Tested by 2

test_signing_with_csvMethod · 0.72