Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: clarify forward resolution checks for reverse resolution #387

Merged
merged 3 commits into from
Jan 31, 2025

Conversation

devin-ai-integration[bot]
Copy link
Contributor

Clarify Forward Resolution Requirements for Reverse Resolution

This PR adds clear documentation about the requirement to perform forward resolution checks when implementing reverse resolution. The changes emphasize that implementers must verify the resolved name by performing a forward resolution to confirm it maps back to the original address.

Key changes:

  • Added warning boxes in key documentation files
  • Added example code showing proper verification in ethers.js
  • Clarified the verification requirement in multiple locations
  • Added explanations of what to do when verification fails

These changes help prevent potential security issues by ensuring implementers understand the importance of verifying reverse resolution results.

Link to Devin run: https://app.devin.ai/sessions/eef283c53d724216b16b979a47f211aa

Copy link
Contributor Author

🤖 Devin AI Engineer

I'll be helping with this pull request! Here's what you should know:

✅ I will automatically:

  • Address comments on this PR. Add "(aside)" to your comment to have me ignore it.
  • Look at CI failures and help fix them

⚙️ Control Options:

  • Disable automatic comment and CI monitoring

Copy link

cloudflare-workers-and-pages bot commented Jan 31, 2025

Deploying ens-docs with  Cloudflare Pages  Cloudflare Pages

Latest commit: 9a158da
Status:⚡️  Build in progress...

View logs

@@ -19,6 +19,8 @@ as well as a convenience function (`setName`) to configure the record as it's mo

## Lookup Primary Name

> **Warning**: After setting or reading a primary name, always confirm via forward resolution that the resolved name maps back to the same address. If the addresses don't match, you must display the original address instead.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can drop this, since it's covered in the linked section of the docs.

docs/resolution/index.mdx Outdated Show resolved Hide resolved
@gskril gskril merged commit de5b3cc into master Jan 31, 2025
3 of 4 checks passed
@gskril gskril deleted the devin/1738338211-clarify-reverse-resolution branch January 31, 2025 20:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants