{"_id":"@aevion/verify","name":"@aevion/verify","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@aevion/verify","version":"1.0.0","description":"Zero-dependency cryptographic verification for Aevion AI proofs","main":"index.js","types":"index.d.ts","repository":{"type":"git","url":"git+https://github.com/Aevion-ai/aevion-verify-js.git"},"keywords":["aevion","ai","verification","cryptography","ed25519","proof"],"author":{"name":"Aevion LLC"},"license":"MIT","dependencies":{"@noble/ed25519":"^2.0.0","@noble/hashes":"^1.3.3"},"devDependencies":{"@types/node":"^20.0.0","typescript":"^5.0.0"},"scripts":{"build":"tsc","test":"node test.js"},"_id":"@aevion/verify@1.0.0","gitHead":"8912a55ebf5609eba87d1315d094768969d25419","bugs":{"url":"https://github.com/Aevion-ai/aevion-verify-js/issues"},"homepage":"https://github.com/Aevion-ai/aevion-verify-js#readme","_nodeVersion":"20.19.5","_npmVersion":"10.8.2","dist":{"integrity":"sha512-U8RLKZ3xhB7nm8MO9afKIZZnCnVJUXNfJdbPkTkgKSDZzUlh9Jba/NxZqkxI3WtRrrnJdy5nFQx9+v1ISxUPCg==","shasum":"d329247226e6151708098860a6cfe31f2e624f22","tarball":"https://registry.npmjs.org/@aevion/verify/-/verify-1.0.0.tgz","fileCount":4,"unpackedSize":11907,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIA/Gqc9hLo+/KIqlh+yOwz2NPml90CcrU3XTkPfnQ/c5AiBvk5vRh/3eE/0yR8bEXql28jeBO+xqwwHyxLI7ThEi/Q=="}]},"_npmUser":{"name":"aevion","email":"scott.e.leishman@gmail.com"},"directories":{},"maintainers":[{"name":"aevion","email":"scott.e.leishman@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/verify_1.0.0_1764987478192_0.4355053305687173"},"_hasShrinkwrap":false}},"time":{"created":"2025-12-06T02:17:58.097Z","1.0.0":"2025-12-06T02:17:58.329Z","modified":"2025-12-06T02:17:58.638Z"},"maintainers":[{"name":"aevion","email":"scott.e.leishman@gmail.com"}],"description":"Zero-dependency cryptographic verification for Aevion AI proofs","homepage":"https://github.com/Aevion-ai/aevion-verify-js#readme","keywords":["aevion","ai","verification","cryptography","ed25519","proof"],"repository":{"type":"git","url":"git+https://github.com/Aevion-ai/aevion-verify-js.git"},"author":{"name":"Aevion LLC"},"bugs":{"url":"https://github.com/Aevion-ai/aevion-verify-js/issues"},"license":"MIT","readme":"# @aevion/verify\n\n**Zero-dependency cryptographic verification for Aevion AI proofs**\n\n[![npm version](https://badge.fury.io/js/@aevion%2Fverify.svg)](https://badge.fury.io/js/@aevion%2Fverify)\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)\n\n---\n\n## Installation\n\n```bash\nnpm install @aevion/verify\n# or\nyarn add @aevion/verify\n```\n\n---\n\n## Quick Start\n\n```javascript\nconst { AevionVerifier } = require('@aevion/verify');\n\n// Initialize verifier\nconst verifier = new AevionVerifier();\n\n// Verify a proof\nconst proof = {\n    content_hash: 'abc123...',\n    signature: 'def456...',\n    public_key: 'ghi789...'\n};\n\nconst isValid = verifier.verify(proof, 'AI output content');\n\nif (isValid) {\n    console.log('Proof verified!');\n} else {\n    console.log('Verification failed');\n}\n```\n\n---\n\n## Features\n\n- **Ed25519 Signature Verification** - Using @noble/ed25519\n- **SHA-256 Content Hashing** - Using @noble/hashes\n- **Browser & Node.js Support** - Works everywhere\n- **TypeScript Types** - Full type definitions included\n- **XGML Proof Support** - Human-readable proof format\n\n---\n\n## API Reference\n\n### `AevionVerifier`\n\n```typescript\nclass AevionVerifier {\n    verify(proof: Proof, content: string): boolean;\n    verifyFromRegistry(proofId: string): Promise<VerifyResult>;\n    parseXGML(xgml: string): Proof;\n}\n\ninterface Proof {\n    proof_id?: string;\n    content_hash: string;\n    signature: string;\n    public_key: string;\n    timestamp?: string;\n    model?: string;\n    domain?: string;\n    algorithm?: string;\n}\n\ninterface VerifyResult {\n    valid: boolean;\n    proof?: Proof;\n    error?: string;\n}\n```\n\n---\n\n## Browser Usage\n\n```html\n<script src=\"https://unpkg.com/@aevion/verify\"></script>\n<script>\n    const verifier = new AevionVerifier();\n    const isValid = verifier.verify(proof, content);\n</script>\n```\n\n---\n\n## Proof Structure\n\n```json\n{\n    \"proof_id\": \"aevion_abc123...\",\n    \"content_hash\": \"sha256_hex_64_chars\",\n    \"signature\": \"ed25519_hex_128_chars\",\n    \"public_key\": \"ed25519_hex_64_chars\",\n    \"timestamp\": \"2025-01-15T10:30:00Z\",\n    \"model\": \"claude-3.5-sonnet\",\n    \"domain\": \"healthcare\",\n    \"algorithm\": \"Ed25519+SHA256\"\n}\n```\n\n---\n\n## License\n\nMIT - See [LICENSE](LICENSE) file.\n\n---\n\n## Links\n\n- **Website:** https://aevion.ai\n- **GitHub:** https://github.com/Aevion-ai/aevion-verify-js\n- **Documentation:** https://docs.aevion.ai\n\n---\n\n*Built by Aevion LLC - Veteran-Owned, Making AI Verifiable*\n","readmeFilename":"README.md","_rev":"1-769458006578beba2ad01aaeb4820e56"}