Stargate is the layer2 state channel protocol and implements of Starcoin.
The goal of Stargate is to provide a second layer for Starcoin, that can execute smart contract on state channel, and the state of smart contract can be seamlessly transferred between chain and offchain channel.
Note that the Starcoin's chain code has not been released yet, we just use Libra to mock it.
- Execute Move contract on state channel.
- Seamlessly state transfer between chain and offchain.
- Layer2 delegate node supports user security to delegate its own Layer2 message to a node without having to keep its own node always online.
- Layer2 generic message deliver (For Layer2 DApp deliver message).
- Offchain state can be compressed by proof(Merkle Proof or ZK Proof).
Note that features including already implemented and planned implementation.
TODO
- Stargate is a prototype implement.
- Project is under heavy development, not production ready.
You can use cargo
directly.
Or if you want docker, there is Dockerfile which install the necessary requirements,
and you can just mount the code, and run cargo
in a linux docker container.
> docker build -t stargate-base -f docker/build.Dockerfile ./docker
> ./docker-run.sh cargo build
Stargate is licensed as Apache 2.0.