Fix HKP example

This commit is contained in:
Yarmo Mackenbach 2021-11-17 09:38:14 +01:00
parent dfcb29b0d1
commit cde83b5b90
No known key found for this signature in database
GPG key ID: 37367F4AF4087AD1

View file

@ -1,8 +1,8 @@
const doip = require('../src') const doip = require('../src')
const main = async () => { const main = async () => {
// Fetch the key using WKD // Fetch the key using HKP
const key = await doip.keys.fetchWKD("test@doip.rocks") const key = await doip.keys.fetchHKP("test@doip.rocks")
// Process it to extract the UIDs and their claims // Process it to extract the UIDs and their claims
const obj = await doip.keys.process(key) const obj = await doip.keys.process(key)