docs.rs failed to build chio-eval-receipt-py-0.1.2
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
chio-eval-receipt-py
PyO3 binding that exposes chio-eval-receipt's bundle verifier to Python. It
wraps a single function, verify_bundle_json, and adds no verification logic
of its own. Builds as a cdylib Python extension module via maturin;
excluded from the default Cargo workspace.
Responsibilities
- Wrap
chio_eval_receipt::verify_bundleas a Python-callable function that raisesValueErrorinstead of returning a RustResult. - Register the
chio_eval_receipt_pyPyO3 module and the one function it exposes.
Public API
verify_bundle_json(bundle_json: str) -> str- production-verifies (verify_bundle, not fixture mode) achio.eval-report.bundle.v1JSON document and returns a summary string:bundle_id=... receipts=... signatures=... corpus_sha256=.... RaisesValueErroron any verification failure.
Usage
=
Testing
Excluded from the default Cargo workspace (see the root Cargo.toml
exclude list); build and test through maturin and pytest:
tests/test_smoke.py checks that an invalid bundle document raises
ValueError rather than returning a summary.
See also
chio-eval-receipt- the parent crate; owns bundle parsing, verification, and unsigned export. This crate wraps itsverify_bundleentry point only.