1. 引言
Aleo系列,前序博客有:
- 欢迎关注Aleo
- 使用Zexe构建Aleo隐私应用——How Zero Knowledge is Rebalancing the Scales of the Internet
- Aleo系列博客——透明的代价
- Aleo系列博客——零知识密码学技术的未来
- Aleo 提供的zero knowledge primitives
- Aleo的PoSW共识
Wagyu为Aleo团队基于Rust语言开发的cryptocurrency钱包,代码见:
- https://github.com/AleoHQ/wagyu
Wagyu提供了丰富的命令行工具来生成cryptocurrency钱包。 Wagyu提供了如下模块,基于这些模块,开发者可构建自己的cryptocurrency 应用:
LibraryStandard WalletHD WalletMnemonicNetworkwagyu-bitcoin- P2PKH
- P2SH-P2WPKH
- Bech32
- BIP-32
- BIP-44
- BIP-49
- Custom
- BIP-39
- Mainnet
- Testnet
- Standard
- Ethereum
- Ledger
- Trezor
- Keepkey
- Custom
- BIP-39
- All
- Standard
- Integrated
- Subaddress
- N/A
- Electrum
- Mainnet
- Testnet
- Stagenet
- P2PKH
- Sprout
- Sapling
- ZIP-32
- N/A
- Mainnet
- Testnet
如需支持新的currency,仅需实现wagyu_model
即可:
- Address
- Public Key
- Private Key
- Derivation Path
- Extended Public Key
- Extended Private Key
- Mnemonic
- Wordlist
- Network
BOLT的 zkchan-tx 作为BOLT zkChannels协议的transaction builder,采用 wagyu库,以支持Bitcoin、Zcash以及其他cryptocurrencies。
zkchan-tx 覆盖了zkChannels 的所有交易类型:
- funding交易
- escrow交易
- closing交易
- disputing the funds from a closed channel after the dispute period交易
- claiming the funds from a closed channel after the dispute period交易
zkchan-tx 中使用的曲线为Secp256k1。