Skip to content

replay

from tensorsig.offset_coded_signatures.graph_queries import replay

Recompute exactly and require matching coordinates, decoder and provenance.

The same explicit resource limits as :func:evaluate apply. Refusal is inconclusive; only a complete matching recomputation verifies the artifact.

Source code in src/tensorsig/offset_coded_signatures/_graph/rational_coordinates.py
def replay(spec, certificate, limits=None):
    """Recompute exactly and require matching coordinates, decoder and provenance.

    The same explicit resource limits as :func:`evaluate` apply. Refusal is
    inconclusive; only a complete matching recomputation verifies the artifact.
    """
    actual = evaluate(spec, limits)
    require(actual == certificate, "certificate mismatch on exact recomputation")
    return actual