10
45
Fork
You've already forked doipjs
28
Decentralized Online Identity Proofs library in Node/JavaScript https://js.doip.rocks
  • JavaScript 99.7%
  • Nix 0.3%
Wiktor Kwapisiewicz 6c128062b5 Add support for reading avatar URLs for ASPe profiles
This patch adds support for reading avatar URLs from claim
`http://ariadne.id/avatar_url` as per the spec (section 2.1.2.6).
See: https://ariadne.id/related/ariadne-signature-profile-0/#2-1-2-6-avatar-url
See: keyoxide/project#5
Signed-off-by: Wiktor Kwapisiewicz <wiktor@metacode.biz>
2025年03月04日 12:59:29 +00:00
.gitea/issue_template fix: fix issue template label [SKIP CI] 2024年01月26日 23:09:01 +01:00
.husky feat: migrate from yarn to npm 2024年06月02日 14:07:40 +02:00
.woodpecker fix: rename CI files 2024年11月18日 10:03:24 +01:00
examples fix: cleanup test-service-provider and add attribution to previous PR 2024年10月16日 00:14:17 -07:00
src Add support for reading avatar URLs for ASPe profiles 2025年03月04日 12:59:29 +00:00
static Add jsdoc documentation 2021年04月22日 15:14:21 +02:00
test fix: fix jsdoc errors found by eslint 2024年01月28日 12:55:45 +00:00
.editorconfig Add editorconfig 2021年03月25日 13:19:54 +01:00
.eslintrc.json feat: add jsdoc plugin to eslint 2024年01月28日 12:55:45 +00:00
.gitignore chore: ignore dist folder 2024年11月25日 19:33:59 +01:00
.licenseignore chore: run build on prepack 2024年11月25日 19:51:33 +01:00
.npmignore chore: run build on prepack 2024年11月25日 19:51:33 +01:00
CHANGELOG.md chore: update CHANGELOG 2024年12月03日 20:47:55 +01:00
flake.lock feat: add nix flake 2024年06月02日 16:51:27 +02:00
flake.nix feat: minor change to flake 2024年06月15日 19:19:36 +02:00
jsconfig.json feat: add linting config 2023年05月03日 10:46:09 +02:00
jsdoc-lib.json feat: change jsdoc theme 2024年01月30日 01:13:36 +01:00
LICENSE Update year 2021年01月13日 13:20:33 +01:00
license-checker-config.json Add regex to license check 2022年02月25日 11:07:17 +01:00
LICENSE.HEADER Add regex to license check 2022年02月25日 11:07:17 +01:00
package-lock.json chore: npm audit fix 2024年08月12日 16:31:13 +02:00
package.json chore: release 2.1.0 2024年12月03日 18:56:06 +01:00
prerelease.js feat: add prerelease checks script 2023年09月18日 17:34:54 +02:00
README.md feat: add sourcehut provider 2024年10月15日 18:18:24 -07:00
rollup.config.js feat: use rollup for bundling 2023年07月08日 08:36:57 +02:00

doip.js

status-badge License Mastodon Follow Open Collective backers and sponsors

doip.js allows websites and Node.js projects to verify decentralized online identities.

Documentation available at js.doip.rocks.

Installation (node)

Install using yarn or npm:

yarn add doipjs
# or
npm install --save doipjs

Import the doip module in your code:

const doip = require('./doipjs')

Installation (browser)

Include the following HTML snippet (requires openpgp.js):

<script src="/static/openpgp.min.js"></script>
<script src="/static/doip.min.js"></script>

Quickstart

Run the following javascript:

const verifyIdentity = async (url, fp) => {
 const claim = new doip.Claim(url, fp)
 claim.match()
 await claim.verify()
 console.log(claim.toJSON())
}
verifyIdentity('dns:doip.rocks', '9f0048ac0b23301e1f77e994909f6bd6f80f485d')

This snippet verifies the doip.rocks domain as bidirectionally linked to Yarmo's cryptographic key.

Contributing

Anyone can contribute!

Developers are invited to:

If you are new to contributing to open source software, we'd love to help you! To get started, here's a list of "good first issues" that you could look into.

Everyone is invited to:

Please note that this project has a Code of Conduct that all contributors agree to abide when participating.

About the Keyoxide project

The Keyoxide project strives for a healthier internet for all and has made its efforts fully open source. Our community is open and welcoming, feel free to say hi!

Funding for the project comes from the NLnet foundation, NGI0 and the people supporting our OpenCollective. The project is grateful for all your support.