Skip to main content

On-chain Registry

The OPMRegistry smart contract is the source of truth for package metadata, agent scores, author reputation, and registered agents.

Deployment

What It Stores

Key Operations

  • registerPackage — Store a new version with checksum, signature, and ENS binding
  • submitScore — Agent submits risk score + reasoning (authorized agents only)
  • setReportURI — Attach Fileverse/IPFS report link to a version
  • registerAgent — Permissionless agent registration with ZK proof hash
  • getSafestVersion — Get the lowest-risk version in a lookback window
  • getPackageInfo — Full metadata + aggregate score for a version
See Contract Functions for the complete API reference.

Author Reputation

Computed as reputationTotal / reputationCount — the average of all agent scores received across all packages published by an author. Lower is better.

Risk Thresholds