1 个不稳定版本
使用旧的Rust 2015
0.5.0 | 2018年9月4日 |
---|
#144 在 #加密货币
99KB
2K SLoC
wagu
发音像和牛。Wagu是wallet generation utility。
Wagu允许用户为以下加密货币生成钱包
- 比特币
- 以太坊
- 门罗币
- Zcash(透明地址)
快速使用
创建任何货币的钱包,如下所示
wagu<货币>
支持货币列表见上面。具体示例见下面和docs
文件夹。
目录
文档
功能
以下展示了wagu
的功能。所有示例均为比特币区块链,更具体的示例可参见/docs
文件夹。
使用默认选项生成钱包
使用以下命令生成未压缩主网私钥和地址
wagu bitcoin
╰─ wagu bitcoin
Private Key: 5JHwLmRafAxdtRddv3o2urYo2bfFUT2V29LSoDM3QFJPzoUoBJT
Address: 1GMmaXUixBA2ZMqw9U1zX4cTCmhWtNhgTB
Network: Mainnet
Compressed: false
生成测试网和主网钱包
使用以下命令生成测试网私钥和地址
wagu bitcoin--network testnet
╰─ wagu bitcoin --network testnet
Private Key: 92Rk56bU8atxbM9mUyNJtijc8XFyw7UHrDaasyTzcn9iLn4M9Le
Address: myPXYe7NrVpq8oYBugTFtHwamejxB6wNC8
Network: Testnet
Compressed: false
以JSON对象形式生成钱包
使用以下命令生成未压缩主网私钥和地址
wagu bitcoin -j
OR wagu bitcoin --json
╰─ wagu -j
[
{
"privateKey": {
"wif": "5JZPS2WbS8A5jkZYtSvHibvNQMN6vU2Btht5YqAZze7zEiFtNDd",
"network": "Mainnet",
"compressed": false
},
"address": {
"wif": "1NuPmGDSsCFcSZCuAccq6zJTvXi2vNzRwg",
"network": "Mainnet",
"address_type": "P2PKH"
}
}
]
生成相同类型的多钱包
使用以下命令生成多个钱包
wagu bitcoin --count 3
OR wagu bitcoin -n 3
╰─ wagu bitcoin -n 3
Private Key: 5JsktgmsNQh3MbHMcwNWG3gd5awH59dnUa64Uih6rAssCsdjjU9
Address: 1N4Ezyuo4K4FFvBnbeyPv5qPA93mBVi5P9
Network: Mainnet
Compressed: false
Private Key: 5JzxKHZNEqN9zNgxkjJQASnpCYvBj5NQMs6HfEgMRsQ84VXJpyU
Address: 1AzoF4Cw8fS7JdFocmsVoKJdv1j4a81Tf9
Network: Mainnet
Compressed: false
Private Key: 5JxRr7Evz4YSKRWvMLzAtg7WZHg7uEfpM6D6TK4w3HUE3aSQbF7
Address: 19uxwixdfxdYVJ4HjrLKT31EakWCqrhb1r
Network: Mainnet
Compressed: false
生成P2WPKH_P2SH(SegWit)钱包
使用以下命令生成SegWit主网私钥和地址
wagu bitcoin--segwit
╰─ wagu --segwit
Private Key: L13EzQBa7izHyXHdhAwBzApAPL1Q8rdVRpY7CASWXyFPyHTuPJxs
Address: 3Qz5gtJ4GKoeSHHErF8Nvs9bDp5TQDw89o
Network: Mainnet
Compressed: true
生成压缩和未压缩(默认)钱包
使用以下命令生成压缩主网私钥和地址
wagu bitcoin --compressed
或 wagu bitcoin -c
╰─ wagu bitcoin -c
Private Key: KzpvjTPuU7p2GZFki2FRnnTceDn5jdVAYZkVvDBptWrHMcLeGWFn
Address: 1G75ZLkSbTr6wBzr4pthM7eV9NzenMyZPC
Network: Mainnet
Compressed: true
帮助
CLI 包含有用的帮助文本,如下所示。
wagu v0.5.0
Argus Observer <team@argus.observer>
Generate a wallet for any cryptocurrency
Supported Currencies: Bitcoin, Ethereum, Monero, Zcash (t-address)
USAGE:
wagu [FLAGS] [OPTIONS] <currency>
FLAGS:
-c, --compressed Enabling this flag generates a wallet which corresponds to a compressed public key
-h, --help Prints help information
-j, --json Enabling this flag prints the wallet in JSON format
--segwit Enabling this flag generates a wallet with a SegWit address
-V, --version Prints version information
OPTIONS:
-n, --count <count> Number of wallets to generate
-N, --network <network> Network of wallet(s) to generate (e.g. mainnet, testnet) [values: mainnet, testnet]
ARGS:
<currency> Name of the currency to generate a wallet for (e.g. bitcoin, ethereum, monero, zcash)
依赖项
约5.5MB
约104K SLoC