Bitcoin Forum
May 07, 2024, 10:11:09 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Warning: One or more bitcointalk.org users have reported that they strongly believe that the creator of this topic is a scammer. (Login to see the detailed trust ratings.) While the bitcointalk.org administration does not verify such claims, you should proceed with extreme caution.
Pages: [1]
  Print  
Author Topic: [BTS]教程:从0.9.3c输出key.json文件中删除无用私钥  (Read 693 times)
nextblast (OP)
Hero Member
*****
Offline Offline

Activity: 658
Merit: 500



View Profile
November 02, 2015, 06:27:46 AM
 #1

步骤一:从Bitshares 2 创世文件创建bloom 过滤文件
1.创建一个新的文件夹把下面要下载的文件都放进去
2.下载github: https://raw.githubusercontent.com/bitshares/bitshares-2/bitshares/genesis.json
3.下载https://raw.githubusercontent.com/bitshares/bitshares-2/bitshares/programs/genesis_util/create_bloom_filter.py
4.在该文件夹中执行 python create_bloom_filter.py -i ./genesis.json --o bloom.dat
 
步骤二:过滤旧的钱包导出文件wallet.json
1.执行git clone https://github.com/cryptonomex/graphene-ui.git
2.新开个窗口,进入刚新建的仓库文件夹cd graphene-ui/dl/并安装依赖项npm install
3.把上步骤生成的bloom.dat 以及旧的钱包文件wallet.json拷贝到graphene-ui/dl/programs
4.执行cat OLD_WALLET_NAME.json | node ./bloom_filter_wallet.js > NEW_WALLET_NAME.json,用你实际的旧钱包文件名和要生成的新钱包文件名替换前后两个文件名。
 
若生成顺利,则会生成小得多的新的json钱包文件,可顺利导入2.0
以上步骤是针对LINUX环境,若是在windows环境下使用,则需将最后一步的“cat” 换成“type”。
无论LINUX还是WINDOWS,都需要事先安装好git, python 等工具。
我在ubuntu 15.04下使用未获成功,但在win7下成功了。
 
作者:svk
译者:独行巨蟹
原文:https://bitsharestalk.org/index.php?topic=19390.0
文章:http://www.bts.hk/how-to-remove-unneeded-keys-from-bitshares-0-9-3-export_keys-json.html
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!