create account

Changing recovery accounts by emrebeyler

View this thread on: hive.blogpeakd.comecency.com
· @emrebeyler · (edited)
$101.95
Changing recovery accounts
<center>![lighthive.png](https://images.hive.blog/DQmZv2rDwTeHQdmqfJzA79S2pZcBm8PVTLYFCgefbiKHcBz/lighthive.png)</center>

<center>[Lighthive documentation](https://lighthive.readthedocs.io)</center>
***

After the chain split, most of the accounts in the HIVE network have their trustee/recovery account as `@steem`, which will not be operating your account recovery process if you need it.

It's important that you set your accounts' trustee to somebody you trust.  This trustee account cannot update your accounts' keys or get access to your account.

However, if your account gets hacked, then you can start your account recovery process with your trustee.
***

I was not sure if there was a UI available for that so I've prepared this little script to update my accounts.

```
from lighthive.client import Client
from lighthive.datastructures import Operation


def change_recovery_account(lighthive_client, account_to_recover,
                            new_recovery_account, owner_key):
    op = Operation('change_recovery_account', {
        "account_to_recover": account_to_recover,
        "new_recovery_account": new_recovery_account,
        "extensions": []
    })

    lighthive_client.keys = [owner_key, ]

    lighthive_client.broadcast(op)
    print("Updated recovery for @%s to @%s" % (
        account_to_recover, new_recovery_account))


if __name__ == '__main__':
    account_list = [
        ('account_to_recover1', 'new_recovery_acc', 'owner_key'),
        ('account_to_recover2', 'new_recovery_acc', 'owner_key'),
        ('account_to_recover3', 'new_recovery_acc', 'owner_key'),
    ]

    c = Client()

    for account_to_recover, new_recovery_account, owner_key in account_list:
        change_recovery_account(
            c, account_to_recover, new_recovery_account, owner_key)
```
***
Just update the account list and its parameters, then execute. See [Lighthive documentation](https://lighthive.readthedocs.io) for installation if you don't have `lighthive`already.

**Note:** *This is originally posted to [Lighthive community](https://hive.blog/trending/hive-131223). If you're interested in that kind of snippets, make sure to subscribe.*

**Update**: 

- Vessel wallet also supports changing recovery account.

- [Peakd](https://peakd.com) also supports it. Go to your profile -> Actions -> Keys & Permissions -> Recovery Account.
👍  , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , and 146 others
👎  
properties (23)
authoremrebeyler
permlinkchanging-recovery-accounts
categoryhive-131223
json_metadata{"tags":["python","development"],"image":["https://images.hive.blog/DQmZv2rDwTeHQdmqfJzA79S2pZcBm8PVTLYFCgefbiKHcBz/lighthive.png"],"links":["https://lighthive.readthedocs.io","https://hive.blog/trending/hive-131223","https://peakd.com"],"app":"hiveblog/0.1","format":"markdown"}
created2020-04-24 00:01:03
last_update2020-04-24 11:05:09
depth0
children13
last_payout2020-05-01 00:01:03
cashout_time1969-12-31 23:59:59
total_payout_value53.076 HBD
curator_payout_value48.877 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length2,366
author_reputation448,535,049,068,622
root_title"Changing recovery accounts"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id96,969,763
net_rshares107,287,957,150,031
author_curate_reward""
vote details (211)
@brianoflondon ·
The best UI for doing this I've found is the Vessel app. Someone posted instructions on installing that a week or two ago. But I do love seeing code for how to do this too!
properties (22)
authorbrianoflondon
permlinkre-emrebeyler-q9a3xl
categoryhive-131223
json_metadata{"tags":["hive-131223"],"app":"peakd/2020.04.4"}
created2020-04-24 06:13:03
last_update2020-04-24 06:13:03
depth1
children7
last_payout2020-05-01 06:13:03
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length172
author_reputation760,626,613,375,672
root_title"Changing recovery accounts"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id96,972,397
net_rshares0
@emrebeyler ·
nice! wasn't aware Vessel has it. Good option. :)
properties (22)
authoremrebeyler
permlinkq9a8nq
categoryhive-131223
json_metadata{"app":"hiveblog/0.1"}
created2020-04-24 07:55:03
last_update2020-04-24 07:55:03
depth2
children6
last_payout2020-05-01 07:55:03
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length49
author_reputation448,535,049,068,622
root_title"Changing recovery accounts"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id96,973,164
net_rshares0
@brianoflondon ·
On the Vesting screen there is an option to add Withdrawal account.

Vessel is also the absolute best way to see multiple power downs on Steem because it shows the date of next deposit. You can switch back and forth from Hive to Steem in the latest version by just switching the API in the settings.
properties (22)
authorbrianoflondon
permlinkre-emrebeyler-q9a9xo
categoryhive-131223
json_metadata{"tags":["hive-131223"],"app":"peakd/2020.04.4"}
created2020-04-24 08:22:36
last_update2020-04-24 08:22:36
depth3
children1
last_payout2020-05-01 08:22:36
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length299
author_reputation760,626,613,375,672
root_title"Changing recovery accounts"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id96,973,451
net_rshares0
@flugschwein ·
Vessel can do nearly everything I think haha.
The beempy CLI would be the choice between Vessel (user-friendly GUI) and your option (actually fiddling around with code) I believe :-) (at least after you managed to install beem)
properties (22)
authorflugschwein
permlinkre-emrebeyler-q9aea9
categoryhive-131223
json_metadata{"tags":["hive-131223"],"app":"peakd/2020.04.4"}
created2020-04-24 09:56:48
last_update2020-04-24 09:56:48
depth3
children3
last_payout2020-05-01 09:56:48
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length227
author_reputation11,950,112,708,339
root_title"Changing recovery accounts"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id96,974,328
net_rshares0
@chitty ·
I have picked your post for my daily hive voting initiative, Keep it up and Hive On!!
properties (22)
authorchitty
permlinkre-changing-recovery-accounts-20200427t000902
categoryhive-131223
json_metadata""
created2020-04-27 00:09:06
last_update2020-04-27 00:09:06
depth1
children0
last_payout2020-05-04 00:09:06
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length86
author_reputation86,901,300,608,582
root_title"Changing recovery accounts"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id97,019,239
net_rshares0
@okean123 · (edited)
You can also do it on peakd. I can't check where exactly, since I'm on my phone right now, but it's somewhere between permissions and other settings.
properties (22)
authorokean123
permlinkre-emrebeyler-2020424t12462075z
categoryhive-131223
json_metadata{"tags":[],"app":"esteem/2.2.5-mobile","format":"markdown+html","community":"hive-125125"}
created2020-04-24 10:46:21
last_update2020-04-24 10:46:36
depth1
children1
last_payout2020-05-01 10:46:21
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length149
author_reputation39,294,394,710,838
root_title"Changing recovery accounts"
beneficiaries
0.
accountesteemapp
weight300
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id96,974,866
net_rshares0
@emrebeyler ·
$0.05
Just investigated, the path is:

```Go to your profile -> Actions -> Keys & Permissions -> Recovery Account.```

Thanks, I've updated the post to include PeakD as an option.
👍  
👎  
properties (23)
authoremrebeyler
permlinkq9ahic
categoryhive-131223
json_metadata{"app":"hiveblog/0.1"}
created2020-04-24 11:06:12
last_update2020-04-24 11:06:12
depth2
children0
last_payout2020-05-01 11:06:12
cashout_time1969-12-31 23:59:59
total_payout_value0.024 HBD
curator_payout_value0.024 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length173
author_reputation448,535,049,068,622
root_title"Changing recovery accounts"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id96,975,050
net_rshares97,490,837,530
author_curate_reward""
vote details (2)
@shmoogleosukami ·
I totally need to do this but only way I can think is to make a second account and set it as recovery.
properties (22)
authorshmoogleosukami
permlinkre-emrebeyler-q9aube
categoryhive-131223
json_metadata{"tags":["hive-131223"],"app":"peakd/2020.04.5"}
created2020-04-24 15:42:51
last_update2020-04-24 15:42:51
depth1
children1
last_payout2020-05-01 15:42:51
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length102
author_reputation226,761,668,704,031
root_title"Changing recovery accounts"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id96,978,317
net_rshares0
@emrebeyler ·
That works. Until then you can set it to somebody you trust and know IRL.
👍  
properties (23)
authoremrebeyler
permlinkq9aucq
categoryhive-131223
json_metadata{"app":"hiveblog/0.1"}
created2020-04-24 15:43:39
last_update2020-04-24 15:43:39
depth2
children0
last_payout2020-05-01 15:43:39
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length73
author_reputation448,535,049,068,622
root_title"Changing recovery accounts"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id96,978,327
net_rshares7,845,270,694
author_curate_reward""
vote details (1)