Dusk Network DayBreak测试网初体验

Posted mutourend

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Dusk Network DayBreak测试网初体验相关的知识,希望对你有一定的参考价值。

1. 引言

Dusk系列博客有:

Dusk Network定位为Layer-1支持隐私智能合约的区块链,主要技术点有:

  • 1)采用PLONK方案实现交易隐私保护。
  • 2)采用独特的PoS共识机制,可实现交易的快速固化。
  • 3)RUSK:实现隐私智能合约。

2. Dusk Network DayBreak测试网初体验

通过testnet Dusk token faucet,可获得相应的测试token。

$ rusk-wallet --version
Dusk Wallet CLI 0.7.0-rc.2

$ rusk-wallet create
Using config from /Users/lanyu/zyd/dusk-repo/rusk/rusk-wallet/config.toml
> Your new wallet was created: /Users/lanyu/.dusk/lanyu.dat

$ rusk-wallet address --key 0
5NETvTmXLDtVJYNzLwjSvUTSWuTqtVCJ6cZcfemaiHR9V8sbhE8m1zpUn8nCEs3rf8hKfpvNauexkeaXfPBdqk1P

###通过faucet获得了testnet dusk token
$ rusk-wallet balance --key 0
Using config from /Users/lanyu/zyd/dusk-repo/rusk/rusk-wallet/config.toml
✔ Please enter wallet password: · [hidden]
> Total balance for key 0 is: 571 Dusk
> Maximum spendable per TX is: 571 Dusk

###再创建一个账号
$ rusk-wallet create
Using config from /Users/lanyu/zyd/dusk-repo/rusk/rusk-wallet/config.toml
A wallet file with this name already exists

$ rusk-wallet address --key 1
Using config from /Users/lanyu/zyd/dusk-repo/rusk/rusk-wallet/config.toml
✔ Please enter wallet password: · [hidden]
> JmtCyy9gvdxxZ3W74QDVfEnsebD8xdZ2ipEY1jAyC3KyK5ZcqLhRWWyXYs5w1QfiZ2cJcm5VxVdzoeJsGoLRmtE

$ rusk-wallet balance --key 1
Using config from /Users/lanyu/zyd/dusk-repo/rusk/rusk-wallet/config.toml
✔ Please enter wallet password: · [hidden]
> Total balance for key 1 is: 0 Dusk
> Maximum spendable per TX is: 0 Dusk

$ rusk-wallet balance --key 0
Using config from /Users/lanyu/zyd/dusk-repo/rusk/rusk-wallet/config.toml
✔ Please enter wallet password: · [hidden]
> Total balance for key 0 is: 571 Dusk
> Maximum spendable per TX is: 571 Dusk

###匿名转账
$ rusk-wallet transfer --key 0 --rcvr JmtCyy9gvdxxZ3W74QDVfEnsebD8xdZ2ipEY1jAyC3KyK5ZcqLhRWWyXYs5w1QfiZ2cJcm5VxVdzoeJsGoLRmtE --amt 11 
Using config from /Users/lanyu/zyd/dusk-repo/rusk/rusk-wallet/config.toml
✔ Please enter wallet password: · [hidden]
05517cdf9533441aac4a600d36df198227013604bb3bfc765cc8f974e8e4a109
lanyudeMacBook-Pro-4:rusk-wallet lanyu$ rusk-wallet balance --key 0
Using config from /Users/lanyu/zyd/dusk-repo/rusk/rusk-wallet/config.toml
✔ Please enter wallet password: · [hidden]
> Total balance for key 0 is: 570.846551277 Dusk
> Maximum spendable per TX is: 570.846551277 Dusk

$ rusk-wallet balance --key 1
Using config from /Users/lanyu/zyd/dusk-repo/rusk/rusk-wallet/config.toml
✔ Please enter wallet password: · [hidden]
> Total balance for key 1 is: 0.000000011 Dusk
> Maximum spendable per TX is: 0.000000011 Dusk

$ rusk-wallet transfer --key 0 --rcvr JmtCyy9gvdxxZ3W74QDVfEnsebD8xdZ2ipEY1jAyC3KyK5ZcqLhRWWyXYs5w1QfiZ2cJcm5VxVdzoeJsGoLRmtE --amt 1000000000
Using config from /Users/lanyu/zyd/dusk-repo/rusk/rusk-wallet/config.toml

根据Dusk explorer 可知相应的转账交易:

参考资料

[1] 2022年2月22日 And… we’re live! Dusk Network launches testnet DayBreak

以上是关于Dusk Network DayBreak测试网初体验的主要内容,如果未能解决你的问题,请参考以下文章

web3调研:Dusk Network调研

rkyv(archive)——Dusk network赞助的ZKP研究项目

经过测试,chrome 进程仍然在 Docker 容器中的 Laravel Dusk

Laravel Dusk 测试运行后从数据库中删除模型?

如何使用 Laravel Dusk 测试身份验证? [关闭]

Laravel Dusk:迁移和种子测试数据库一次