mirror of
https://codeberg.org/keyoxide/doipjs.git
synced 2025-01-10 06:39:27 -07:00
Fix docs
This commit is contained in:
parent
6f6f20d131
commit
69df55d014
2 changed files with 3 additions and 3 deletions
|
@ -4,7 +4,7 @@ Basic example:
|
||||||
|
|
||||||
```javascript
|
```javascript
|
||||||
const verifyIdentity = async (url, fp) => {
|
const verifyIdentity = async (url, fp) => {
|
||||||
console.log(await doip.verify(url, fp))
|
console.log(await doip.claims.verify(url, fp))
|
||||||
}
|
}
|
||||||
verifyIdentity('dns:doip.rocks', '9f0048ac0b23301e1f77e994909f6bd6f80f485d')
|
verifyIdentity('dns:doip.rocks', '9f0048ac0b23301e1f77e994909f6bd6f80f485d')
|
||||||
```
|
```
|
||||||
|
@ -13,7 +13,7 @@ This snippet works en will verify the [doip.rocks](https://doip.rocks) domain as
|
||||||
linked to Yarmo's cryptographic key using the [dns](serviceproviders/dns.md)
|
linked to Yarmo's cryptographic key using the [dns](serviceproviders/dns.md)
|
||||||
service provider.
|
service provider.
|
||||||
|
|
||||||
Please note you need to include the
|
Please note you need to include the
|
||||||
[openpgpjs](https://github.com/openpgpjs/openpgpjs) library:
|
[openpgpjs](https://github.com/openpgpjs/openpgpjs) library:
|
||||||
|
|
||||||
```html
|
```html
|
||||||
|
|
|
@ -6,7 +6,7 @@ Basic example:
|
||||||
const doip = require('doip')
|
const doip = require('doip')
|
||||||
|
|
||||||
const verifyIdentity = async (url, fp) => {
|
const verifyIdentity = async (url, fp) => {
|
||||||
console.log(await doip.verify(url, fp))
|
console.log(await doip.claims.verify(url, fp))
|
||||||
}
|
}
|
||||||
verifyIdentity('dns:doip.rocks', '9f0048ac0b23301e1f77e994909f6bd6f80f485d')
|
verifyIdentity('dns:doip.rocks', '9f0048ac0b23301e1f77e994909f6bd6f80f485d')
|
||||||
```
|
```
|
||||||
|
|
Loading…
Reference in a new issue