Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
async _validateRecord (peerId, ipnsEntry) {
const pubKey = await ipns.extractPublicKey(peerId, ipnsEntry)
// IPNS entry validation
await ipns.validate(pubKey, ipnsEntry)
return ipnsEntry.value.toString()
}
}