doipjs/docs/quickstart-nodejs.md
Yarmo Mackenbach ffbc75a945 Add docs
2020-11-06 18:35:28 +01:00

431 B

Quick start (Node.js)

Basic example:

const doip = require('doip')

const verifyIdentity = async (url, fp) => {
  console.log(await doip.verify(url, fp))
}
verifyIdentity('dns:doip.rocks', '9f0048ac0b23301e1f77e994909f6bd6f80f485d')

This snippet works en will verify the doip.rocks domain as linked to Yarmo's cryptographic key using the dns service provider.