qssm-core
qssm-core is the Rust and WASM-facing entry point for the QSSM truth engine.
It exposes five functions:
compilebuilds an opaque blueprint byte array from a built-in template ID or raw template JSON.commitbinds arbitrary secret bytes to a 32-byte salt.provecreates a proof byte array that a JSON claim satisfies the compiled blueprint.verifychecks a proof byte array against a blueprint.openrecomputes the commitment for debugging or envelope matching.
The main model is simple: compile once, then pass opaque byte arrays between commit, prove, and verify.
Full lifecycle example
use ;
Notes
compilereturns an opaque blueprint byte array. Treat it as transport data, not a stable public format.proveexpects the secret bytes to be valid JSON claim data.verifyreturnsfalseon invalid, tampered, or mismatched proof data.openis optional and mainly useful for debugging or commitment matching.
WASM output
This crate also builds as cdylib and is used as the source for the generated WASM package under pkg/.