Sign In

@bolyra/openclaw

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@bolyra/openclaw

OpenClaw trust verification adapter for Bolyra — ZKP-native agent authentication

latest
Source
npmnpm
Version
0.3.2
Version published
Weekly downloads
6
-53.85%
Maintainers
1
Weekly downloads
 
Created
Source

@bolyra/openclaw

OpenClaw trust verification adapter for Bolyra — ZKP-native agent authentication.

Maps Bolyra's mutual ZKP handshake (Groth16) to OpenClaw's TrustVerificationResult interface, providing cryptographic agent identity verification at every OpenClaw verification point.

Install

npm install @bolyra/openclaw @bolyra/sdk

Quick Start

import { createBolyraPlugin } from '@bolyra/openclaw';
import { createHumanIdentity } from '@bolyra/sdk';

// 1. Create your human identity (done once)
const human = await createHumanIdentity(mySecret);

// 2. Create the plugin with a credential resolver
const plugin = createBolyraPlugin(
  human,
  async (agentId) => credentialStore.get(agentId),
  { network: 'base-sepolia' }
);

// 3. Register with OpenClaw
openclaw.use(plugin);

How It Works

When OpenClaw calls onAgentVerify(agentId):

  • Resolves the agent's Bolyra credential from your credential store
  • Runs a mutual ZKP handshake (parallel Groth16 + PLONK proof generation)
  • Scores the result on 5 dimensions (proof validity, expiry, permissions, freshness, scope)
  • Returns a TrustVerificationResult with score (0-100), grade (A-F), and DID

Scoring

DimensionPointsWhat it checks
Proof validity40Both ZKP proofs verify
Credential expiry20Agent credential hasn't expired
Permission coverage20Agent has read/write permissions
Nonce freshness10Session nonce within maxProofAge
Scope commitment10Delegation chain initialized

Configuration

createBolyraPlugin(human, resolver, {
  network: 'base-sepolia',     // DID network identifier
  minScore: 70,                // Minimum score for verified=true
  maxProofAge: 300,            // Cache TTL in seconds
  sdkConfig: {                 // Passthrough to @bolyra/sdk
    rpcUrl: 'https://sepolia.base.org',
    registryAddress: '0x2781...',
  },
});

Standalone Verification

import { verifyAgent, computeTrustScore } from '@bolyra/openclaw';

const result = await verifyAgent(human, agentCredential, { network: 'base' });
// { verified: true, score: 100, grade: 'A', did: 'did:bolyra:base:...', warnings: undefined }

License

Apache-2.0 — see LICENSE and NOTICE.

Keywords

openclaw

FAQs

Package last updated on 14 Jun 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts