
Security News
Deno 2.6 + Socket: Supply Chain Defense In Your CLI
Deno 2.6 introduces deno audit with a new --socket flag that plugs directly into Socket to bring supply chain security checks into the Deno CLI.
dnsprovejs
Advanced tools
npm install '@ensdomains/dnsprovejs' --save
var provider = web3.currentProvider;
var DnsProve = require('dnsprove');
var dnsprove = new DnsProve(provider);
var textDomain = '_ens.matoken.xyz';
var dnsResult = await dnsprove.lookup('TXT', textDomain);
var oracle = await dnsprove.getOracle('0x123...');
var proofs = dnsResult.proofs;
if(dnsResult.found){
await oracle.submitAll(dnsResult, {from:nonOwner});
}else if (dnsResult.nsec){
await oracle.deleteProof(
'TXT', textDomain,
proofs[proofs.length -1],
proofs[proofs.length -2],
{from:nonOwner}
);
}else{
throw("DNSSEC is not supported")
}
Alternatively, if you want to submit the proof not only to Oracle contract but also to claim via dnsregistrar, then you can call getAllProofs and pass the result into the proveAndClaim function.
let dnsResult = await dnsprove.lookup('TXT', '_ens.matoken.xyz', address);
let oracle = await dnsprove.getOracle(address);
let data = await oracle.getAllProofs(dnsResult, params);
await registrar.methods
.proveAndClaim(encodedName, data[0], data[1])
.send(params)
Please refer to the doc
npm run test
FAQs
Port of dnsprove.go
The npm package dnsprovejs receives a total of 3 weekly downloads. As such, dnsprovejs popularity was classified as not popular.
We found that dnsprovejs demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Deno 2.6 introduces deno audit with a new --socket flag that plugs directly into Socket to bring supply chain security checks into the Deno CLI.

Security News
New DoS and source code exposure bugs in React Server Components and Next.js: what’s affected and how to update safely.

Security News
Socket CEO Feross Aboukhadijeh joins Software Engineering Daily to discuss modern software supply chain attacks and rising AI-driven security risks.