Skip to content
This repository has been archived by the owner on Aug 30, 2022. It is now read-only.

Helpers for adding or removing keys from a permission #88

Open
brandonfancher opened this issue Jun 27, 2019 · 0 comments
Open

Helpers for adding or removing keys from a permission #88

brandonfancher opened this issue Jun 27, 2019 · 0 comments
Labels
enhancement New feature or request good first issue Good for newcomers question Further information is requested

Comments

@brandonfancher
Copy link
Contributor

When rekeying a permission on an EOSIO account, an updateauth action must be issued. Newcomers often make the mistake of thinking that an updateauth will add a given key to their permission. They are surprised to find that it actually replaces the entire permission! For example, if you have three keys on the active permission and intend to add a fourth by issuing an updateauth for that permission containing only the new key, the other three keys will be removed!

Usually, developers are trying to add or remove a given key or keys. Any thoughts on adding helpers for these actions to this SDK? Maybe addKeys or removeKeys methods? They would, of course, take parameters as necessary for the target permission, the weight, etc.

@brandonfancher brandonfancher added enhancement New feature or request good first issue Good for newcomers question Further information is requested labels Jun 27, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request good first issue Good for newcomers question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant