doipjs/examples/fetch-key-hkp.js
Yarmo Mackenbach cde83b5b90
Fix HKP example
2021-11-17 09:38:14 +01:00

14 lines
No EOL
337 B
JavaScript

const doip = require('../src')
const main = async () => {
// Fetch the key using HKP
const key = await doip.keys.fetchHKP("test@doip.rocks")
// Process it to extract the UIDs and their claims
const obj = await doip.keys.process(key)
// Log the claims of the first UID
console.log(obj.users[0].claims)
}
main()