2021-11-17 07:00:44 -07:00
|
|
|
const doip = require('../src')
|
|
|
|
|
|
|
|
const main = async () => {
|
|
|
|
// Generate the claim
|
|
|
|
const claim = new doip.Claim("dns:doip.rocks", "3637202523e7c1309ab79e99ef2dc5827b445f4b")
|
|
|
|
|
|
|
|
// Match it to candidate service providers
|
2022-02-08 10:48:57 -07:00
|
|
|
claim.match()
|
2021-11-17 07:00:44 -07:00
|
|
|
|
|
|
|
// Verify the claim
|
2022-02-08 10:48:57 -07:00
|
|
|
await claim.verify()
|
2021-11-17 07:00:44 -07:00
|
|
|
|
|
|
|
// Log the claims of the first UID
|
|
|
|
console.log(claim)
|
|
|
|
}
|
|
|
|
|
|
|
|
main()
|