@ansdomain/dnssecoraclejs
v0.1.7
Published
A library for proving DNS records to the ENS DNSSEC oracle contracts
Downloads
3
Readme
dnssecoraclejs
A TypeScript/JavaScript library for generating proof data for the ENS DNSSEC Oracle.
Installing
npm install '@ensdomains/dnssecoraclejs' --save
Usage
import { Oracle } from '@ensdomains/dnssecoraclejs'
const oracle = new Oracle(oracleAddress, provider)
// Refer to https://github.com/ensdomains/dnsprovejs for how to query result data
const { data, proof } = oracle.getProofData(result)
Testing
npm run test