@aviarytech/did-peer

中文文档
1.1.2发布于 2025/07/30TypeScriptES Module近 30 天下载 9442

This is a typescript implementation of the did:peer method.

原始使用文档
文档目录3 节
  1. Assumptions and limitations
  2. Development and Releases
  3. Commit Message Format

Typescript did:peer

This is a typescript implementation of the did:peer method.

Currently it more correctly aligns with the python peerdid implementation of the method. Work is required to update the did:peer method to be conformant with did-core and since this was created to interoperate with other did:peer didcomm participants interoperability has been chosen over spec correctness.

Assumptions and limitations

  • Only static layers 1, 2a, 2b are supported
  • Only X25519 keys are supported for key agreement
  • Only Ed25519 keys are supported for authentication
  • Supported verification materials (input and in the resolved DID Document)
    • 2020 verification materials (Ed25519VerificationKey2020 and X25519KeyAgreementKey2020) with multibase base58 (publicKeyMultibase) public key encoding.
    • JWK (JsonWebKey2020) using JWK (publicKeyJwk) public key encoding 2018/2019 verification materials (Ed25519VerificationKey2018 and X25519KeyAgreementKey2019)
    • using base58 (publicKeyBase58) public key encoding.

Development and Releases

This project uses semantic-release for automated versioning and publishing. When commits are pushed to the main branch, semantic-release will:

  • Analyze commit messages to determine the version bump (patch, minor, major)
  • Generate a changelog
  • Create a GitHub release
  • Publish to npm

Commit Message Format

Please use conventional commits format:

  • feat: new features (minor version bump)
  • fix: bug fixes (patch version bump)
  • feat!: or fix!: breaking changes (major version bump)
  • docs:, chore:, style:, refactor:, test: no version bump

版本与发布记录

@aviarytech/did-peer 共发布 21 个版本,首次发布于 2022/11/05;过去 12 个月发布了 0 个版本。

版本发布日期距今
1.1.2latest2025/07/301.3 年前
1.1.12025/07/301.3 年前
1.1.02025/07/291.3 年前
1.0.22025/07/291.3 年前
1.0.12025/07/291.3 年前
1.0.02025/07/291.3 年前

关于 @aviarytech/did-peer 的常见问题

@aviarytech/did-peer 是什么?

This is a typescript implementation of the did:peer method.

如何安装 @aviarytech/did-peer?

在项目目录运行 npm install @aviarytech/did-peer,或使用 pnpm add / yarn add / bun add。

@aviarytech/did-peer 支持 TypeScript 吗?

支持。包内自带 TypeScript 类型声明(package.json 声明了 types 入口),安装后即可获得类型提示,无需再安装 @types 包。

@aviarytech/did-peer 支持 ESM 还是 CommonJS?

以 ES Module 形式发布,推荐使用 import 引入。在 CommonJS 项目中,Node.js 20.19+ / 22.12+ 可以直接 require() 不含顶层 await 的 ES Module,更早的版本需要改用动态 import()。

@aviarytech/did-peer 可以商用吗?

@aviarytech/did-peer 使用 未声明 许可。package.json 没有声明许可证。没有许可证的代码默认保留全部权利,商用前请联系作者或查看仓库中的 LICENSE 文件。以上为概括,不构成法律意见,请以许可原文为准。

@aviarytech/did-peer 的下载量有多少?

根据 npm 官方下载统计,@aviarytech/did-peer 在 2026/10/07 – 2026/11/05 这 30 天内被下载 9,442 次,日均约 315 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@aviarytech/did-peer 还在维护吗?

最新版本 1.1.2 发布于 2025/07/30(1.3 年前);至今共发布 21 个版本,其中过去 12 个月发布了 0 个;首次发布于 2022/11/05。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。