Observed since 21 Oct, 11:15 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
ZK input/output proofs for privacy-preserving capability invocation
| Document | Description |
|---|---|
| User guide | Install, configure, verify plugin is loaded |
| User cases | Personas and cross-plugin workflows |
| SDK integration | Code examples and hook behavior |
Zero-knowledge proofs for private AI capability invocation. Consumer proves "I sent valid input matching the schema" without revealing the input. Provider proves "I executed correctly" without revealing model weights or computation trace. Neither party sees the other's private data.
pip install aimarket-zk
Or from a checkout of the monorepo:
pip install -e plugins/aimarket-zk
Proving backend: the plugin loads and registers its routes with no backend configured, and the
/zk/*endpoints then refuse with an explanation rather than the plugin vanishing from the catalogue. SetAIMARKET_ZK_SIMULATED=1for the development simulation — it is not real zero-knowledge and the hub says so at every call.
from aimarket_hub.signing import Signer
from aimarket_zk.zk_proofs import ZKProver
signer = Signer()
prover = ZKProver(signer)
schema = {"type": "object", "properties": {"text": {"type": "string"}}}
secret_input = {"text": "confidential merger terms between CorpA and CorpB"}
# Consumer: prove input is valid without revealing it
input_proof = prover.prove_input("legal.review@v1", schema, secret_input)
print(f"Input commitment: {input_proof.input_commitment[:16]}...")
# Provider sees only the hash — not "confidential merger terms"
# Provider: verify input proof → execute → prove output
import hashlib, json
schema_hash = hashlib.sha256(json.dumps(schema, sort_keys=True).encode()).hexdigest()
verification = prover.verify_input_proof(input_proof, schema_hash, "legal.review@v1",
signer.public_key_b64)
print(f"Input proof valid: {verification['valid']}") # True
print(f"Privacy: {verification['reason']}") # "input is valid without being revealed"
# Full private invoke cycle (input + output proofs)
def executor(pid, cid, inp):
return {"risk_assessment": "low", "issues_found": 0}
result = prover.private_invoke_flow(
"legal.review@v1", "prod-legal",
schema, secret_input, executor
)
print(f"Success: {result['success']}")
print(f"Privacy: {result['privacy_guarantees']}")
# {"input_hidden": true, "execution_trace_hidden": true,
# "double_spend_protected": true, "zk_scheme": "Groth16 (simulated)"}
Reference implementation uses simulated Groth16 for development. Production: circom circuits compiled to bn254 curve via bellman/gnark. The interface is identical — swap the prover backend and proofs become cryptographically sound.
MIT · Maintained by AI-Factory
Download counts and popularity will appear here as the collector receives them.
| Version | Published | Direct dependencies | Open version |
|---|---|---|---|
| 2.1.1 | 15 Oct 2026 | 2 |
This describes our collected data; it is not a security assessment.
Observed since 21 Oct, 11:15 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package:12b299c01f8e042959a88412d87e60a2044cddd3b2b3c83124ef036267f80b4e