CLI - update authority
There should be separate commands for each authority: update-owner-authority
, update-active-authority
, update-posting-authority
, update-memo-authority
.
-
adding new entries
process update-active-authority --working-account initminer –threshold 60 add –key xxx –weight 20
process update-active-authority –threshold 60 add –account gtg –weight 30
add should warn if existing authority has been updated (so maybe we don't need modify?) -
removing entries
process update-active-authority –threshold 60 remove –account gtg
process update-active-authority –threshold 60 remove –key xxx
-
modifying
process update-active-authority modify –key xxx --weight 40 # modifies weight
- threshold is left not changedprocess update-active-authority –threshold 20 modify –account gtg --weight 10
- modifies both threshold and account authority matching gtg it should be an error if there is no matching entry
process update-active-authority –threshold 20
- modifies only threshold
Moreover, because complex authorities can need to add/modify/remove multiple entries at one time it should be allowed:
add --key xxx --weight 80 \
add --account blocktrades --weight 20 \
remove --account esency \
remove --key yyy \
modify --account hive_signer --weight 10```
Remark:
The memo key may be only key, not an account.