FractalAI Post-Quantum Proofs

v0.1.3
io.github.johnInarti/fractalai Checked 14 hours ago Published 1 month ago

Post-quantum (ML-DSA-65/Dilithium-3) proof, provenance & AI-decision receipts, paid via x402.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

verify_proof Verify a post-quantum signature

Verify a post-quantum (ML-DSA-65 / Dilithium-3, NIST FIPS 204) signature against its public key. Free, no payment. Returns { valid, verdict }. A valid result proves the exact bytes in signed_message_b64 were signed by the given key; it says nothing about their truthfulness. For a signature from pqc_sign over a hex digest D, signed_message_b64 = base64(utf8(D)).

ParameterTypeDescription
public_key *stringBase64 ML-DSA-65 / Dilithium-3 public key.
signature *stringBase64 ML-DSA-65 / Dilithium-3 signature to check.
signed_message_b64 *stringBase64 of the exact bytes that were signed.

x402_checkout Get x402 payment requirements

Return the live x402 (HTTP 402) payment requirements for a paid FractalAI resource: price, network, USDC asset, payTo address and the accepts[] entries (EIP-3009 gasless and txHash fallback). Free — it never moves funds. Use it before pqc_sign / seal_provenance / attest_decision to learn exactly how much and how to pay. Pass resource='manifest' for the full .well-known/x402.json.

ParameterTypeDescription
resource *stringWhich paid resource to price, or 'manifest' for the whole x402 manifest.

pqc_sign Buy a post-quantum signature

Pay $0.02 USDC (x402) for one post-quantum ML-DSA-65 / Dilithium-3 (NIST FIPS 204) signature over your message (its sha256 is signed) or a hex hash (signed directly). Returns { digest, signature, public_key, payment }. Without payment_tx_hash you get the payment challenge, not a signature. The signature proves these exact bytes were signed by this server's PQC key — nothing about their truthfulness, and 'quantum-resistant per NIST' is not 'unbreakable'.

ParameterTypeDescription
hashstringHex digest signed directly. Provide message OR hash.
messagestringUTF-8 string; sha256(message) is signed.
payerstringOptional payer address hint.
payment_tx_hashstringA confirmed USDC-on-Base transaction hash paying the required amount to the treasury. If omitted, the tool returns the x402 payment challenge (accepts[]) instead of a result — pay first, then call a…

seal_provenance Buy a PQC + drand provenance seal

Pay $0.05 USDC (x402) for a post-quantum provenance seal over content: a drand round (League of Entropy, not backdateable) + a self-contained ML-DSA-65 / Dilithium-3 signature over the seal + an on-chain anchor attempt (this server's node-bound Dilithium-2 key) over the content hash. Useful for EU AI Act (Art. 10/50/53) provenance. It is a provenance record, not a content audit. Without payment_tx_hash you get the payment challenge.

ParameterTypeDescription
contentstringUTF-8 content; sha256(content) is sealed.
content_hashstringSha256 hex you already computed. Provide content OR content_hash.
payerstringOptional payer address hint.
payment_tx_hashstringA confirmed USDC-on-Base transaction hash paying the required amount to the treasury. If omitted, the tool returns the x402 payment challenge (accepts[]) instead of a result — pay first, then call a…

attest_decision Seal an AI agent decision (VAID-1)

Pay $0.05 USDC (x402) to seal an AI agent's declared decision: its input hash, output, model and timestamp are chained in an append-only Black Box and anchored on-chain (VAID-1, this server's node-bound Dilithium-2 key). You also get back a self-contained ML-DSA-65 / Dilithium-3 signature over the same canonical decision bytes for independent offline verification. Returns a re-verifiable receipt. Built for EU AI Act Art.12 record-keeping. It notarizes the decision as declared; it does not judge whether the decision was correct. Without payment_tx_hash you get the payment challenge.

ParameterTypeDescription
agent_id *stringStable identifier of the agent whose decision is sealed.
input *stringThe decision input (or its hash).
output *stringThe decision output the agent produced.
modelstringModel/agent version that produced the decision.
payerstringOptional payer address hint.
payment_tx_hashstringA confirmed USDC-on-Base transaction hash paying the required amount to the treasury. If omitted, the tool returns the x402 payment challenge (accepts[]) instead of a result — pay first, then call a…