Skip to content

Latest commit

 

History

History
79 lines (50 loc) · 1.3 KB

README.md

File metadata and controls

79 lines (50 loc) · 1.3 KB

Clover Protocol

An aSVC based stateless protocol as L2 rollup on Nervos CKB.

License: MIT

About Clover Protocol

Whitepaper (PDF | Markdown)

Play With it

build

  1. compile contract
capsule build --release

Have Fun

  1. Run mock of ckb dev chain
cargo run --bin mock-ckb --release
  1. Run layer2 node
cargo run --bin rollup --release
  1. Install test-tools
pip install httpie
  1. Deploy contract
http POST 127.0.0.1:8001/setup
  1. Register accounts
http POST 127.0.0.1:8001/register pubkey=00 psk=00
http POST 127.0.0.1:8001/register pubkey=01 psk=01
  1. Deposit
http POST 127.0.0.1:8001/deposit to=0 amount=1000 psk=00
  1. Transfer
http POST 127.0.0.1:8001/transfer from=0 to=1 amount=10 psk=00
  1. Withdraw
 http POST 127.0.0.1:8001/withdraw from=0 amount=99 psk=00

Security

This project is still under active development and is currently being used for research and experimental purposes only, please DO NOT USE IT IN PRODUCTION for now.

License

This project is licensed under MIT license (LICENSE or http://opensource.org/licenses/MIT)