您当前的位置: 首页 > 

mutourend

暂无认证

  • 5浏览

    0关注

    661博文

    0收益

  • 0浏览

    0点赞

    0打赏

    0留言

私信
关注
热门博文

Aleo Wagyu钱包

mutourend 发布时间:2022-01-26 12:01:17 ,浏览量:5

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
wagyu-ethereum
  • Standard
  • Ethereum
  • Ledger
  • Trezor
  • Keepkey
  • Custom
  • BIP-39
  • All
wagyu-monero
  • Standard
  • Integrated
  • Subaddress
  • N/A
  • Electrum
  • Mainnet
  • Testnet
  • Stagenet
wagyu-zcash
  • P2PKH
  • Sprout
  • Sapling
  • ZIP-32
  • N/A
  • Mainnet
  • Testnet

如需支持新的currency,仅需实现wagyu_model即可:

LibraryStandard WalletHD WalletMnemonicNetworkwagyu_model
  • Address
  • Public Key
  • Private Key
  • Derivation Path
  • Extended Public Key
  • Extended Private Key
  • Mnemonic
  • Wordlist
  • Network
2. Wagyu的应用

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。

关注
打赏
1664532908
查看更多评论
立即登录/注册

微信扫码登录

0.1165s