npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

aegis-erc8004

v0.1.0

Published

Aegis Vault — ERC-8004 (Trustless Agents) binding: spec-compliant agent registration files, KYA commitment anchoring, and thin clients for the Identity/Validation registries. Binds to the standard; does not redefine it.

Readme

aegis-erc8004

ERC-8004(Trustless Agents)绑定层。绑定标准,不重定义:身份归 ERC-8004 的 Identity Registry,验证归 Validation Registry;本包只做 Aegis KYA(Know-Your-Agent)承诺向标准表面的锚定。

能力

| 模块 | 说明 | |---|---| | buildAgentRegistration() | 产出符合 eip-8004#registration-v1 的注册文件(agent card)。Aegis 绑定以自定义 service 条目(name: "aegis")表达——规范明确允许任意 service 名称/端点 | | kyaCommitment() | 对 KYA bundle(registry 身份、owner 指纹、会话策略哈希、审计链头)做 keccak256 承诺。只有承诺上链,数据本身留在 kyaUri | | verifyBinding() | 验证方(钱包/审计/保险)用:校验注册文件确实携带 Aegis 绑定且承诺与 bundle 一致,fail-closed | | IdentityRegistryClient | 薄 ethers 客户端:register / setAgentURI / setCommitment(规范 setMetadata 钩子)/ setAgentWallet(EIP-712) | | ValidationRegistryClient | validationRequest / getValidationStatus——KYA 承诺的第三方验证钩子 |

快速使用

import { buildAgentRegistration, kyaCommitment, agentRegistryString, toDataUri }
  from 'aegis-erc8004';
import { IdentityRegistryClient, REGISTRY_PRESETS, METADATA_KEYS }
  from 'aegis-erc8004/clients';

const registry = agentRegistryString(11155111, REGISTRY_PRESETS.sepolia.identityRegistry);

const commitment = kyaCommitment({
  agentRegistry: registry,
  agentId: 22,
  kyaUri: 'https://kya.acme.example/22',
  ownerFingerprint: '<keccak(PQC root pubkey)>',
  sessionPolicyHash: '<keccak(active session policy)>',
  auditChainHead: '<audit hash-chain head>'
});

const file = buildAgentRegistration({
  name: 'acme-purchasing-agent',
  description: 'Procurement agent under tiered spend guardrails',
  services: [{ name: 'web', endpoint: 'https://agent.acme.example/' }],
  registrations: [{ agentId: 22, agentRegistry: registry }],
  kyaUri: 'https://kya.acme.example/22',
  kyaCommitment: commitment
});

// 全链上元数据:data URI 或 IPFS
const agentURI = toDataUri(file);

链上写入见 docs/runbook/ERC8004-ANCHORING.md。

诚实边界

  • ABI / typed-data:函数签名已对齐 ChaosChain RI v1.2 README(2026-09-07 核对,含 validationRequest 的必填 requestHash);事件形状 RI 未列明, 客户端避免依赖事件取值。全部 ABI 可通过构造参数 abi 覆盖。
  • 地址:REGISTRY_PRESETS.sepolia 三地址(Identity/Reputation/ Validation)与 RI README「Deployed Contracts」表核对一致(含核对日期), 生产使用前仍需复核当期地址;地址必须能链接到出处。