1
0
Fork
You've already forked doipjs
0
forked from keyoxide/doipjs
Decentralized Online Identity Proofs library in Node/JavaScript
  • JavaScript 99.7%
  • Nix 0.3%
2024年08月12日 16:31:13 +02: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 feat: remove CI publish safeguard 2024年06月15日 20:55:06 +02:00
dist chore: npm audit fix 2024年08月12日 16:31:13 +02:00
examples feat: tweaks to examples, use new classes 2023年07月09日 12:03:51 +02:00
src chore: release 2.0.0 2024年08月12日 16:27:12 +02: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 Ignore docs 2021年04月20日 16:42:58 +02:00
.licenseignore feat: add nix flake 2024年06月02日 16:51:27 +02:00
CHANGELOG.md chore: release 2.0.0 2024年08月12日 16:27:12 +02: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.0.0 2024年08月12日 16:27:12 +02:00
prerelease.js feat: add prerelease checks script 2023年09月18日 17:34:54 +02:00
README.md chore: update README [SKIP CI] 2024年01月28日 10:20:34 +01: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.result)
}
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.