mirror of
https://codeberg.org/keyoxide/doipjs.git
synced 2024-12-22 22:49:28 -07:00
19 lines
No EOL
466 B
JavaScript
19 lines
No EOL
466 B
JavaScript
const doip = require('../src')
|
|
|
|
const main = async () => {
|
|
// Fetch the profile using ASPE
|
|
const profile = await doip.asp.fetchASPE("aspe:keyoxide.org:6WJK26YKF6WUVPIZTS2I2BIT64")
|
|
console.log(profile);
|
|
|
|
// Process every claim for every persona
|
|
profile.personas[0].claims.forEach(async claim => {
|
|
// Match the claim
|
|
claim.match()
|
|
|
|
// Verify the claim
|
|
await claim.verify()
|
|
console.log(claim)
|
|
})
|
|
}
|
|
|
|
main() |