Quick Start
Install
Section titled “Install”npm install @brivora/crypto @brivora/verifyPost-Quantum Crypto in 3 Lines
Section titled “Post-Quantum Crypto in 3 Lines”import { crypto } from '@brivora/crypto';
const keys = await crypto.createIdentity();const signed = await crypto.sign('hello world', keys.privateKey);const { valid } = await crypto.verify(signed, keys.publicKey);// valid: trueVerifiable AI in 5 Lines
Section titled “Verifiable AI in 5 Lines”import { verify } from '@brivora/verify';
const result = await verify.govern( () => anthropic.messages.create({ model: 'claude-sonnet-4-5-20250929', messages: [{ role: 'user', content: 'Analyze this loan application' }] }), { governance: 'eu-ai-act-v1', audit: true });
console.log(result.output); // The AI responseconsole.log(result.proof); // PQC-signed Merkle rootconsole.log(result.valid); // trueconsole.log(result.report); // Compliance reportconsole.log(result.score); // Fidelity score 0.0-1.0Verify a Proof
Section titled “Verify a Proof”// Anyone can verify — no API, no account, no Brivora dependency neededconst verified = await verify.check(proof, publicKey);console.log(verified.valid); // true or falseWhat’s Next?
Section titled “What’s Next?”- @brivora/crypto — Full API reference for post-quantum cryptography
- @brivora/verify — Full API reference for governance proofs
- Architecture — How the protocol works under the hood