Closed stakervali closed 3 years ago
shasum -a 1 wallet.seed
9addf26f82c0eb08e939b7fdae6cca4beaafc3d0 wallet.seed
grin-wallet owner_api
Password:
20201220 07:55:46.473 WARN grin_wallet_controller::controller - Starting HTTP Foreign API on Owner server at 127.0.0.1:3420.
20201220 07:55:46.473 WARN grin_wallet_controller::controller - Starting HTTP Owner API server at 127.0.0.1:3420.
20201220 07:55:46.473 WARN grin_wallet_controller::controller - HTTP Owner listener started
HTTP Owner successfully started.
Before runnning the script, we need to make sure to edit the configuration.
api_sercet_file = '/Users/path/.grin/main/.owner_api_secret'
wallet_password = 'oldpassword'
wallet.open_wallet(None, wallet_password) pp.pprint(wallet.change_password("oldpassword","newpassword","default")) pp.pprint(wallet.close_wallet())
True
True
wallet.open_wallet(None, wallet_password)
True
shasum -a 1 wallet.seed
908545f2ac593551545a3dcb9fa00e206b6b4071 wallet.seed
@mojitoo as usual please include outputs of grin-wallet -V
and uname -a
, otherwise looks good! Thanks!
grin-wallet 4.0.0 Darwin MacBook-Pro-de-Workstation.local 19.5.0 Darwin Kernel Version 19.5.0: Tue May 26 20:41:44 PDT 2020; root:xnu-6153.121.2~2/RELEASE_X86_64 x86_64
Description Testing the change password method from the Owner API
Prerequisites
Test procedure
Calculate checksum of seed file, save the output. Change wallet password using owner_api::change_password method.
Expected result: Checksum of seed file before and after password change must be different. At the end wallet should be opened via new password.
Include the output of command
and your environment