Steem Developer Portal

In this tutorial we will explain and show you how to change your account password and keys on the Steem blockchain using the steem class found within the steem-python library.

Intro

The Steem python library has a built-in function to update your account details on the blockchain. We are using the AccountUpdate and commit.finalizeOp to make these changes. The AccountUpdate function creates the operation that we will be committing to the blockchain using the commit.finalizeOp function. We first get the existing keys from your account then recreate these from your new password. Once these have been created using your new password we commit them to the blockchain. The initial parameters we need to complete this operation are:

account - The user account that we will be changing

old_password - Your existing password for the account we are changing

new_password - The new password we will be updating your account with

Caution:
This functionality does not work on the TestNet so we will be modifying the live blockchain.

2. User input

You will first be asked for the account that we will be modifying the password for. You will then be prompted to enter your existing password as well as your new password that we will update your account with.

4. Configure new keys

We will now generate new keys for each role using the new password as well as create the json that will be committed to the Steem blockchain. We generate new keys using the new password for each of these roles.