0.3.0 • Published 5 years ago

ara-identity-dns v0.3.0

Weekly downloads
2
License
LGPL-3.0
Repository
github
Last release
5 years ago

dns-identity-resolution

Get DIDs stored in TXT records for domains

Table of Contents

Status

Stable

Installation

npm install arablocks/dns-identity-resolution

Usage

const { getDID } = require('dns-identity-resolution')

const did = await getDID({ domain: 'ara.one' })

API Docs

async getDID({ domain, dns = '8.8.8.8', port = 53 })

Resolve TXT record matching given domain

  • domain: Domain of TXT record
  • [dns]: IP of desired DNS server
  • [port]: Port to communicate with DNS server on

Returns Object<DID>. Returns DID object of info about identity

Contributing

License

LGPL-3.0