mirror of
https://codeberg.org/keyoxide/doipjs.git
synced 2024-12-22 22:49:28 -07:00
20 lines
No EOL
499 B
JavaScript
20 lines
No EOL
499 B
JavaScript
import * as doip from '../src/index.js'
|
|
|
|
const main = async () => {
|
|
// Fetch the profile using HKP
|
|
const profile = await doip.openpgp.fetchHKP("test@doip.rocks")
|
|
|
|
// Process every claim for every persona
|
|
profile.personas.forEach(async persona => {
|
|
persona.claims.forEach(async claim => {
|
|
// Match the claim
|
|
await claim.match()
|
|
|
|
// Verify the claim
|
|
await claim.verify()
|
|
console.log(claim)
|
|
})
|
|
})
|
|
}
|
|
|
|
main() |