EOSIO/eosio-java

Helpers for adding or removing keys from a permission

Open

#88 opened on Jun 27, 2019

 (0 comments) (0 reactions) (0 assignees)Java (46 forks)auto 404
enhancementgood first issuequestion

Repository metrics

Stars
 (126 stars)
PR merge metrics
 (PR metrics pending)

Description

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.

Contributor guide