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

Function default_controlblock

test/functional/feature_taproot.py:220–222  ·  view source on GitHub ↗

Default expression for "controlblock": combine leafversion, negflag, pubkey_internal, merklebranch.

(ctx)

Source from the content-addressed store, hash-verified

218 return get(ctx, "tapleaf").merklebranch
219
220def default_controlblock(ctx):
221 """Default expression for "controlblock": combine leafversion, negflag, pubkey_internal, merklebranch."""
222 return bytes([get(ctx, "leafversion") + get(ctx, "negflag")]) + get(ctx, "pubkey_internal") + get(ctx, "merklebranch")
223
224def default_scriptcode_suffix(ctx):
225 """Default expression for "scriptcode_suffix", the actually used portion of the scriptcode."""

Callers 1

spenders_taproot_activeFunction · 0.85

Calls 1

getFunction · 0.85

Tested by

no test coverage detected