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

Function zero_appender

test/functional/feature_taproot.py:642–644  ·  view source on GitHub ↗

Return a callable that evaluates expr and returns it with a zero added.

(expr)

Source from the content-addressed store, hash-verified

640 return fn
641
642def zero_appender(expr):
643 """Return a callable that evaluates expr and returns it with a zero added."""
644 return lambda ctx: deep_eval(ctx, expr) + b"\x00"
645
646def byte_popper(expr):
647 """Return a callable that evaluates expr and returns it with its last byte removed."""

Callers 1

feature_taproot.pyFile · 0.85

Calls 1

deep_evalFunction · 0.85

Tested by

no test coverage detected