{"_id":"@bolyra/openclaw","_rev":"4-5da3d7438f42275f45e2803f22581cf1","name":"@bolyra/openclaw","dist-tags":{"latest":"0.3.2"},"versions":{"0.1.0":{"name":"@bolyra/openclaw","version":"0.1.0","keywords":["openclaw","bolyra","zkp","agent-authentication","trust-verification","zero-knowledge"],"license":"MIT","_id":"@bolyra/openclaw@0.1.0","maintainers":[{"name":"saneguy","email":"kondojuviswanadha@gmail.com"}],"homepage":"https://github.com/bolyra/bolyra#readme","bugs":{"url":"https://github.com/bolyra/bolyra/issues"},"dist":{"shasum":"f421b694de41c777826cd8bf4841bfea7a1ef4d1","tarball":"https://registry.npmjs.org/@bolyra/openclaw/-/openclaw-0.1.0.tgz","fileCount":11,"integrity":"sha512-nc0F+PwZXJeRXiQX3nkLKN2f21L8I18fIP4X4bzrEt5u2GpdA7SP1i+E21Uo1aP12epit8zvsDuH51qm2YORFQ==","signatures":[{"sig":"MEUCIQC6OmivvwY0ulrQZTiN8Hc7Ah4MmDYchXvei3EPrkpuNAIgBJyLks2SWxfD1QSJ1qg2LQzcypfAXpDbd75eLJe/cLg=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":27012},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"81d0f24ea9fc00f94f909169e1218db5325d5faf","scripts":{"test":"jest --passWithNoTests","build":"tsc","typecheck":"tsc --noEmit"},"_npmUser":{"name":"saneguy","email":"kondojuviswanadha@gmail.com"},"repository":{"url":"git+https://github.com/bolyra/bolyra.git","type":"git"},"_npmVersion":"11.6.2","description":"OpenClaw trust verification adapter for Bolyra — ZKP-native agent authentication","directories":{},"_nodeVersion":"24.13.0","dependencies":{"@bolyra/sdk":"^0.2.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.7.0","ts-jest":"^29.2.0","typescript":"^5.5.0","@types/jest":"^29.5.0","@types/node":"^22.0.0"},"peerDependencies":{"@bolyra/sdk":">=0.2.0"},"_npmOperationalInternal":{"tmp":"tmp/openclaw_0.1.0_1776737747880_0.8097036683564343","host":"s3://npm-registry-packages-npm-production"}},"0.3.0":{"name":"@bolyra/openclaw","version":"0.3.0","keywords":["openclaw","bolyra","zkp","agent-authentication","trust-verification","zero-knowledge"],"license":"Apache-2.0","_id":"@bolyra/openclaw@0.3.0","maintainers":[{"name":"saneguy","email":"kondojuviswanadha@gmail.com"}],"homepage":"https://github.com/bolyra/bolyra#readme","bugs":{"url":"https://github.com/bolyra/bolyra/issues"},"dist":{"shasum":"0fe2902e5b0506ccbd696d1d3945e0b4f1018205","tarball":"https://registry.npmjs.org/@bolyra/openclaw/-/openclaw-0.3.0.tgz","fileCount":13,"integrity":"sha512-Rj9MBYRygbhs4NYvWRR7S2wePEjg7THa4RutGoGxtmo+bIu6RGZD5+vk9eF7f34K1BBmLPW8WOgpX4pFKCiSOg==","signatures":[{"sig":"MEQCIDx3hhaXaN/zXUk/qr3hgnzN6zWEY8m6IH6heI51tVtTAiBFqlfvuvDSLUDRlipA+9IrJLNkhzphNPEtI8MGD/jngg==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":41726},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"cee2ff1b91fbec85cf4ace655a2565de57a11bcd","scripts":{"test":"jest --passWithNoTests","build":"tsc","typecheck":"tsc --noEmit"},"_npmUser":{"name":"saneguy","email":"kondojuviswanadha@gmail.com"},"repository":{"url":"git+https://github.com/bolyra/bolyra.git","type":"git"},"_npmVersion":"11.6.2","description":"OpenClaw trust verification adapter for Bolyra — ZKP-native agent authentication","directories":{},"_nodeVersion":"24.13.0","dependencies":{"@bolyra/sdk":"^0.3.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.7.0","ts-jest":"^29.2.0","typescript":"^5.5.0","@types/jest":"^29.5.0","@types/node":"^22.0.0"},"peerDependencies":{"@bolyra/sdk":">=0.3.0"},"_npmOperationalInternal":{"tmp":"tmp/openclaw_0.3.0_1780147680541_0.5318695668354236","host":"s3://npm-registry-packages-npm-production"}},"0.3.1":{"name":"@bolyra/openclaw","version":"0.3.1","keywords":["openclaw","bolyra","zkp","agent-authentication","trust-verification","zero-knowledge"],"license":"Apache-2.0","_id":"@bolyra/openclaw@0.3.1","maintainers":[{"name":"saneguy","email":"kondojuviswanadha@gmail.com"}],"homepage":"https://github.com/bolyra/bolyra#readme","bugs":{"url":"https://github.com/bolyra/bolyra/issues"},"dist":{"shasum":"d0d0c10090a60c71b8b5f47035ec19ab8fc277ba","tarball":"https://registry.npmjs.org/@bolyra/openclaw/-/openclaw-0.3.1.tgz","fileCount":13,"integrity":"sha512-hWYPoQj9+fBozG3wjuIYfn+RWLGyx6OyyxCg0oYexYZSqJiVidmr7fp/6TIu5iA8fmWzFIoEJV74vbrz9kc13w==","signatures":[{"sig":"MEQCIAUb7D4VDJM2weYtEJuQuA9ILqYCJVWhOPnP3EGb9TI9AiBTKUhuSzQbuvfomp5o+2kED9h8yZMfSon5JeiunYKSYw==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@bolyra%2fopenclaw@0.3.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":41870},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"239aefcbf279f6f7c62d979748b7966c0f920fda","scripts":{"test":"jest --passWithNoTests","build":"tsc","typecheck":"tsc --noEmit"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:4b079426-a382-484a-84a1-e31a021c948a"}},"overrides":{"ws":"8.21.0","tmp":"0.2.7","underscore":"1.13.8","circom_tester":{"snarkjs":"0.7.6"}},"repository":{"url":"git+https://github.com/bolyra/bolyra.git","type":"git"},"_npmVersion":"11.17.0","description":"OpenClaw trust verification adapter for Bolyra — ZKP-native agent authentication","directories":{},"_nodeVersion":"22.22.3","dependencies":{"@bolyra/sdk":"^0.4.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^30.4.2","ts-jest":"^29.2.0","typescript":"^5.5.0","@types/jest":"^30.0.0","@types/node":"^25.9.1"},"peerDependencies":{"@bolyra/sdk":">=0.4.0"},"_npmOperationalInternal":{"tmp":"tmp/openclaw_0.3.1_1781364374190_0.4846903196884802","host":"s3://npm-registry-packages-npm-production"}},"0.3.2":{"name":"@bolyra/openclaw","version":"0.3.2","description":"OpenClaw trust verification adapter for Bolyra — ZKP-native agent authentication","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"build":"tsc","test":"jest --passWithNoTests","typecheck":"tsc --noEmit"},"dependencies":{"@bolyra/sdk":"^0.4.0"},"devDependencies":{"typescript":"^5.5.0","@types/node":"^25.9.1","jest":"^30.4.2","ts-jest":"^29.2.0","@types/jest":"^30.0.0"},"peerDependencies":{"@bolyra/sdk":">=0.4.0"},"overrides":{"tmp":"0.2.7","ws":"8.21.0","underscore":"1.13.8","circom_tester":{"snarkjs":"0.7.6"}},"repository":{"type":"git","url":"git+https://github.com/bolyra/bolyra.git"},"publishConfig":{"access":"public"},"keywords":["openclaw","bolyra","zkp","agent-authentication","trust-verification","zero-knowledge"],"license":"Apache-2.0","gitHead":"f6634cee7b14dc1df27757bacae7c994cc54e171","_id":"@bolyra/openclaw@0.3.2","bugs":{"url":"https://github.com/bolyra/bolyra/issues"},"homepage":"https://github.com/bolyra/bolyra#readme","_nodeVersion":"22.22.3","_npmVersion":"11.17.0","dist":{"integrity":"sha512-vglGoOiEMzDhZV0+cbZ86JpagTob/81XQvZAxZOS3MoKIoXWEPkJ/FNXWKP5d2PrDl6TmDQjcKsOxWF74l0dHw==","shasum":"36381c7d93954491b586e708a7524c9a7397dd6d","tarball":"https://registry.npmjs.org/@bolyra/openclaw/-/openclaw-0.3.2.tgz","fileCount":13,"unpackedSize":42032,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@bolyra%2fopenclaw@0.3.2","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIArzT00NAuzbebqbcRSOTdwRdiS/s8FWiSE27BHWAT+eAiEA040+s9870zOChaRjg8i/ahj8lYfSe0PFKxlpaQ1nbX0="}]},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:4b079426-a382-484a-84a1-e31a021c948a"}},"directories":{},"maintainers":[{"name":"saneguy","email":"kondojuviswanadha@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/openclaw_0.3.2_1781412546247_0.6408253201676566"},"_hasShrinkwrap":false}},"time":{"created":"2026-04-21T02:15:47.678Z","modified":"2026-06-14T04:49:06.662Z","0.1.0":"2026-04-21T02:15:48.002Z","0.3.0":"2026-05-30T13:28:00.681Z","0.3.1":"2026-06-13T15:26:14.311Z","0.3.2":"2026-06-14T04:49:06.379Z"},"bugs":{"url":"https://github.com/bolyra/bolyra/issues"},"license":"Apache-2.0","homepage":"https://github.com/bolyra/bolyra#readme","keywords":["openclaw","bolyra","zkp","agent-authentication","trust-verification","zero-knowledge"],"repository":{"type":"git","url":"git+https://github.com/bolyra/bolyra.git"},"description":"OpenClaw trust verification adapter for Bolyra — ZKP-native agent authentication","maintainers":[{"name":"saneguy","email":"kondojuviswanadha@gmail.com"}],"readme":"# @bolyra/openclaw\n\nOpenClaw trust verification adapter for [Bolyra](https://bolyra.ai) — ZKP-native agent authentication.\n\nMaps Bolyra's mutual ZKP handshake (Groth16) to OpenClaw's `TrustVerificationResult` interface, providing cryptographic agent identity verification at every OpenClaw verification point.\n\n## Install\n\n```bash\nnpm install @bolyra/openclaw @bolyra/sdk\n```\n\n## Quick Start\n\n```typescript\nimport { createBolyraPlugin } from '@bolyra/openclaw';\nimport { createHumanIdentity } from '@bolyra/sdk';\n\n// 1. Create your human identity (done once)\nconst human = await createHumanIdentity(mySecret);\n\n// 2. Create the plugin with a credential resolver\nconst plugin = createBolyraPlugin(\n  human,\n  async (agentId) => credentialStore.get(agentId),\n  { network: 'base-sepolia' }\n);\n\n// 3. Register with OpenClaw\nopenclaw.use(plugin);\n```\n\n## How It Works\n\nWhen OpenClaw calls `onAgentVerify(agentId)`:\n\n1. Resolves the agent's Bolyra credential from your credential store\n2. Runs a mutual ZKP handshake (parallel Groth16 + PLONK proof generation)\n3. Scores the result on 5 dimensions (proof validity, expiry, permissions, freshness, scope)\n4. Returns a `TrustVerificationResult` with score (0-100), grade (A-F), and DID\n\n## Scoring\n\n| Dimension | Points | What it checks |\n|-----------|--------|---------------|\n| Proof validity | 40 | Both ZKP proofs verify |\n| Credential expiry | 20 | Agent credential hasn't expired |\n| Permission coverage | 20 | Agent has read/write permissions |\n| Nonce freshness | 10 | Session nonce within maxProofAge |\n| Scope commitment | 10 | Delegation chain initialized |\n\n## Configuration\n\n```typescript\ncreateBolyraPlugin(human, resolver, {\n  network: 'base-sepolia',     // DID network identifier\n  minScore: 70,                // Minimum score for verified=true\n  maxProofAge: 300,            // Cache TTL in seconds\n  sdkConfig: {                 // Passthrough to @bolyra/sdk\n    rpcUrl: 'https://sepolia.base.org',\n    registryAddress: '0x2781...',\n  },\n});\n```\n\n## Standalone Verification\n\n```typescript\nimport { verifyAgent, computeTrustScore } from '@bolyra/openclaw';\n\nconst result = await verifyAgent(human, agentCredential, { network: 'base' });\n// { verified: true, score: 100, grade: 'A', did: 'did:bolyra:base:...', warnings: undefined }\n```\n\n## License\n\nApache-2.0 — see [LICENSE](./LICENSE) and [NOTICE](./NOTICE).\n","readmeFilename":"README.md"}