Dusk Network DayBreak Testnet First Experience

1 Introduction

The Dusk series of blogs includes:

Dusk Network is positioned as a Layer-1 blockchain that supports privacy smart contracts. The main technical points are:

  • 1) Adopt the PLONK scheme to achieve transaction privacy protection.
  • 2) Using a unique PoS consensus mechanism, it can achieve rapid solidification of transactions.
  • 3) RUSK: Implementing privacy smart contracts.

2. Dusk Network DayBreak testnet first experience

Through the testnet Dusk token faucet , the corresponding test token can be obtained.

$ 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

According to Dusk explorer , the corresponding transfer transaction can be seen:
insert image description here
insert image description here

References

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

Guess you like

Origin blog.csdn.net/mutourend/article/details/123681319