diff --git a/examples/verify-claim.js b/examples/verify-claim.js new file mode 100644 index 0000000..c62eb2d --- /dev/null +++ b/examples/verify-claim.js @@ -0,0 +1,17 @@ +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 + claim.match(); + + // Verify the claim + await claim.verify(); + + // Log the claims of the first UID + console.log(claim) +} + +main() \ No newline at end of file