- $ wget -qO- https://raw.githubusercontent.com/NebulousLabs/entropy-mnemonics/master/english.go \
- | egrep "^\s+\"(.+)\"," \
- | egrep -o [a-z]+ \
- > dictionary.txt
之后,安装python-Levenshtein库,当然,也得把Sia项目克隆安装到体系中。接着,编写一个能主动导出可能性种子密钥的小脚本:
- import Levenshtein
- seed = raw_input('enter your wallet seed: ')
- for seed_word in seed.split():
- for dict_word in open('dictionary.txt'):
- dict_worddict_word = dict_word.strip()
- distance = Levenshtein.distance(seed_word, dict_word)
- if distance != 1:
- continue
- print '"%s" -> "%s"\n%s\n' % (seed_word, dict_word,
- seed.WordStr(seed_word, dict_word))
该脚本大年夜1600行字典文件中复制粘贴词语到我的Python目标文件中,以下代码操作可以很好地展示其功能。

开启钱包
我担心会有成百上千种可能性,所以我必须卖力记录每个种子的碰撞运行过程。荣幸的是,最终脚本成功运行后显示,与论坛用户颁布种子有1个编辑距离的密钥只有12个!
- $ python recover.py
- enter your wallet seed: eluded logic wise ascend tagged acoustic situated stylishly younger aptitude inroads avidly hefty also godfather unrest avatar push because brunt viking gone august public tonic vulture shrugged otter adapt
- "wise" -> "wife"
- eluded logic wife ascend tagged acoustic situated stylishly younger aptitude inroads avidly hefty also godfather unrest avatar push because brunt viking gone august public tonic vulture shrugged otter adapt
- "tagged" -> "jagged"
- eluded logic wise ascend jagged acoustic situated stylishly younger aptitude inroads avidly hefty also godfather unrest avatar push because brunt viking gone august public tonic vulture shrugged otter adapt
- "tagged" -> "nagged"
- eluded logic wise ascend nagged acoustic situated stylishly younger aptitude inroads avidly hefty also godfather unrest avatar push because brunt viking gone august public tonic vulture shrugged otter adapt
- "aptitude" -
推荐阅读
利用 TensorFlow 实现上下文的 Chat-bots
在我们的日常聊天中,情景擦?鲱重要的。我们将应用 TensorFlow 构建一个聊天机械人框架,并且添加一些高低文处理机制来使得机械人加倍智能。“Whole World in your Hand”R>>>详细阅读
地址:http://www.17bianji.com/lsqh/35942.html
1/2 1

网友点评
精彩导读
科技快报
品牌展示