mirror of
https://codeberg.org/keyoxide/doipjs.git
synced 2024-12-22 06:29:28 -07:00
17 lines
No EOL
377 B
JavaScript
17 lines
No EOL
377 B
JavaScript
import * as doip from '../src/index.js'
|
|
|
|
const main = async () => {
|
|
// Generate the claim
|
|
const claim = new doip.Claim("dns:doip.rocks", "3637202523e7c1309ab79e99ef2dc5827b445f4b")
|
|
|
|
// Match it to candidate service providers
|
|
claim.match()
|
|
|
|
// Verify the claim
|
|
await claim.verify()
|
|
|
|
// Log the claims of the first UID
|
|
console.log(claim)
|
|
}
|
|
|
|
main() |