@trufo/validator-core-wasm
v0.1.0-pre.0
Published
Trufo's policy and verdict engine on top of c2pa-rs. Powers verify.trufo.ai.
Maintainers
Readme
validator-core
The policy and verdict engine that powers verify.trufo.ai. See the repo-level README for the conceptual layering and the open-source rationale.
This crate consumes the upstream c2pa-rs implementation of the C2PA specification and applies Trufo's verdict policy on top.
Targets
cargo build --releaseproduces a nativerlib+cdylib. Used bytrufo-validator-serverand any other native consumer.wasm-pack build --release --target web --scope trufo(run from the/wasmdirectory) produces the@trufo/validator-core-wasmnpm package consumed bytrufo-web/client.
Both targets produce bit-identical verdict JSON for the same inputs, trust list version, and validator-core version. This is enforced by a fixture-based equivalence harness in fixtures.
Status
Phase 0 / pre-0.1.0. The public API is intentionally tiny and the verdict is a placeholder. Phase 1 fills in:
- Per-spec-version (C2PA 1.3 / 1.4 / 2.0 / 2.1) rule sets
- Three-tier conformance classification (spec / registered extension / unrecognized)
- Per-assertion attribution
- Inherited CAWG findings
- Trust list policy enforcement (CAI default, Trufo-curated additive)
- Reproducibility metadata pinning
