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

Add token approvals to PublicResolver.sol #177

Merged
merged 6 commits into from Jan 10, 2023

Conversation

nxt3d
Copy link
Contributor

@nxt3d nxt3d commented Dec 28, 2022

The current version of the Public Resolver only allows owners to approve other addresses to update all of their records on their behalf. However, this proposed change (referred to as "token approvals") would allow an owner to approve a delegate to make changes to the records of a specific name. This would be useful for companies that want to retain control over their subnames but still allow employees to make updates to individual subnames assigned to them. For example, an employee could update all of the records for a subname like "greg.technet.eth," but the company would retain ownership and be able to revoke the approved wallet address at any time.

Another potential use case for token approvals is if a parent name is wrapped in a contract. In this scenario, the contract could approve the previous owner of the name in the Public Resolver, allowing them to continue using the name and making updates through the ENS app.

@Arachnid Arachnid requested a review from jefflau January 4, 2023 19:58
Copy link
Member

@Arachnid Arachnid left a comment

Choose a reason for hiding this comment

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

This seems reasonable to me. @jefflau your thoughts?

@jefflau
Copy link
Member

jefflau commented Jan 10, 2023

This looks good to me too.

@Arachnid Arachnid merged commit 1bbb448 into ensdomains:audit-mitigations Jan 10, 2023
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.

None yet

3 participants