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

Function key

test/functional/wallet_taproot.py:162–164  ·  view source on GitHub ↗

Construct an x-only pubkey from its hex representation.

(hex_key)

Source from the content-addressed store, hash-verified

160
161
162def key(hex_key):
163 """Construct an x-only pubkey from its hex representation."""
164 return bytes.fromhex(hex_key)
165
166def pk(hex_key):
167 """Construct a script expression for taproot_construct for pk(hex_key)."""

Callers 5

run_testMethod · 0.85
NextMethod · 0.85
PrevMethod · 0.85
IsValidKeyMethod · 0.85
ReadStepMethod · 0.85

Calls

no outgoing calls

Tested by 2

IsValidKeyMethod · 0.68
ReadStepMethod · 0.68