Published: 07 Feb 2020 › Updated: 07 Feb 2020
忘记steem账号密码后,用 python 提取 beem 本地钱包里私钥
steem 账号有四个密码:"owner", "active", "posting", "memo".
各司其职,增加了使用安全,但也带来了密码记忆的困难.
正常情况下,用专门的文件保存一份,但文件也有被损坏的时候.
最近就把账号密码搞丢了,怎么办?
后来想想,用这个这个账号研究 steem 的 python编程时,导入过 beem的本地钱包里面,看看能不能提取出来.
想到这儿,立马开干.
获取本地钱包内私钥(get_private_key_from_beempy_wallet.py):
#!/usr/bin/python
# -*- coding: UTF-8 -*-
# python get_private_key_from_beempy_wallet.py
# python get_private_key_from_beempy_wallet.py sample
import sys
import json
from beem import Steem
from beem.instance import shared_steem_instance
# 输入本地钱包密码或在代码中直接赋值
# Enter the local wallet password or set value directly in the code
# password = input('local wallet password : ')
password = "wallet8password"
stm = shared_steem_instance()
stm.wallet.unlock(password)
private_key = {}
try:
account = sys.argv[1]
except Exception as e:
account = None
if not account:
account = input('steem account username: ')
for role in ["owner", "active", "posting", "memo"]:
try:
private_key[role] = stm.wallet.getKeyForAccount(account, role)
except Exception as e:
print('no', role, ' key in local wallet for', account)
print('private_key:', json.dumps(private_key, indent=4))
执行程序:python get_private_key_from_beempy_wallet.py
Leave 忘记steem账号密码后,用 python 提取 beem 本地钱包里私钥 to:
Read more #cn posts
Best Posts From anonymity.inlet
We have not curated any of anonymity.inlet's posts yet. But you can encourage our curation team to review posts by visiting them regularly and by referring other readers. Because we give priority to frequently read content.
More Posts From anonymity.inlet
- 分叉 hive 后的新版steem-engine,更像 steem 资产的交易所
- 奢侈品牌在纷纷关闭各大疫情国门店和工厂
- ssh-add倒入报错 Could not open a connection to your authentication agent
- @misterdelegation 开始有动作了,这是TRON孙的宣战吗?
- BTC跌成这样,估计多家交易所的期货和杠杆交易出问题了
- 邪门年年有,今朝特别多!垃圾车装紧俏肉?
- 猜猜,早晨10点,ETH会反弹到什么价位?
- BTC减半行情靠不靠谱?5月见分晓
- 所有的steem第三方应用都太慢了,是怎么回事?
- BTC结束日线调整,触底反弹了吗?
- 关键时候,就可以看出来见证人的社区影响力了,TOP20夺回6席
- steem内讧如此,大量Power Down之时,到底谁在市场收集STEEM筹码?
- 既然V2ray/SSR/SS能被断网,那就不再是安全的
- 巴菲特晚,这次是谁洗脑谁?孙宇晨还是巴菲特?沟通还是勾结?
- 忘记steem账号密码后,用 python 提取 beem 本地钱包里私钥
- Collect wool for $100 from digitalocean.com and build a v2ray proxy service for myself
- 家用 ubuntu 服务器运行 steem 机器人,使用 v2ray 连接薅羊毛($100)来的 墙外梯子
- 薅羊毛$100美金,搞一个自用梯子
- 免费使用Azure,搭建WordPress发布steem内容和售卖服务的实战教程:特别介绍-steempress
- 免费使用Azure,搭建WordPress发布steem内容和售卖服务的实战教程