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

Function pk

test/functional/wallet_taproot.py:166–168  ·  view source on GitHub ↗

Construct a script expression for taproot_construct for pk(hex_key).

(hex_key)

Source from the content-addressed store, hash-verified

164 return bytes.fromhex(hex_key)
165
166def pk(hex_key):
167 """Construct a script expression for taproot_construct for pk(hex_key)."""
168 return (None, CScript([bytes.fromhex(hex_key), OP_CHECKSIG]))
169
170def compute_taproot_address(pubkey, scripts):
171 """Compute the address for a taproot output with given inner key and scripts."""

Callers 1

run_testMethod · 0.85

Calls 1

CScriptClass · 0.90

Tested by

no test coverage detected