1
0
Fork 0
Decentralized OpenPGP Identity Proofs library in node/javascript
Go to file
André Jaenisch fa57e7b538 feat: add discord support
bump discord API version to v10

accept discord.gg urls

allow proof in guild name

add comments

Reviewed-on: https://codeberg.org/keyoxide/doipjs/pulls/85
2024-04-08 13:44:44 +00:00
.gitea/issue_template fix: fix issue template label [SKIP CI] 2024-01-26 23:09:01 +01:00
.husky fix: fix calls to linting 2023-05-03 10:47:50 +02:00
.woodpecker fix: fix CI syntax 2023-10-09 19:07:29 +02:00
dist chore: release 1.2.9 2024-02-01 17:06:40 +01:00
examples feat: tweaks to examples, use new classes 2023-07-09 12:03:51 +02:00
src add comments 2024-04-08 00:22:44 +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: use rollup for bundling 2023-07-08 08:36:57 +02:00
CHANGELOG.md chore: release 1.2.9 2024-02-01 17:06:40 +01:00
LICENSE Update year 2021-01-13 13:20:33 +01:00
LICENSE.HEADER Add regex to license check 2022-02-25 11:07:17 +01:00
README.md chore: update README [SKIP CI] 2024-01-28 10:20:34 +01: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-checker-config.json Add regex to license check 2022-02-25 11:07:17 +01:00
package.json chore: release 1.2.9 2024-02-01 17:06:40 +01:00
prerelease.js feat: add prerelease checks script 2023-09-18 17:34:54 +02:00
rollup.config.js feat: use rollup for bundling 2023-07-08 08:36:57 +02:00
yarn.lock feat: remove unused dependencies 2024-01-31 02:47:48 +00:00

README.md

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.