区块链(虚拟货币)第一篇:DCR地址离线生成方法

xiaoxiao2025-09-06  325

使用github的go程序:

https://github.com/decred/dcraddrgen

首先安装好go,git,dep

安装dcraddrgen步骤

 

go get -u github.com/decred/base58

git clone https://github.com/decred/dcrd $GOPATH\src\github.com\decred\dcrd

git clone https://github.com/agl/ed25519 $GOPATH\src\github.com/agl/ed25519

git clone https://github.com/decred/dcraddrgen $GOPATH/src/github.com/decred/dcraddrgen

安装dep go get -u github.com/golang/dep/cmd/dep

cd $GOPATH/src/github.com/decred/dcraddrgen

dep ensure ps:如果dep ensure报错,eg:failed HTTP request to URL "http://golang.org/x/crypto?go-get=1"     如果没有用系统代理翻墙,则在文件夹中复制golang.org到与github.com同目录     则运行以下命令:         set https_proxy=127.0.0.1:1235         set http_proxy=127.0.0.1:1235

然后在dep ensure,还接着会报错: No versions of github.com/dchest/blake256 met constraints:

    则运行以下命令:         set https_proxy=127.0.0.1:1080         set http_proxy=127.0.0.1:1080 接着  git pull

最后  dep ensure go install go build

成功之后cmd运行:dcraddrgen  -noseed E:\zt_6.27\test\DCR1.json

生成单个密钥对地址

dcraddrgen  -testnet -noseed E:\zt_6.27\test\tDCR1.json

生成单个密钥对测试网络地址

 

转载请注明原文地址: https://www.6miu.com/read-5035868.html

最新回复(0)