ssyuan / stargate

Stargate is the layer2 state channel protocol and implements of Starcoin

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Stargate


License

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.

Features

  1. Execute Move contract on state channel.
  2. Seamlessly state transfer between chain and offchain.
  3. Layer2 delegate node supports user security to delegate its own Layer2 message to a node without having to keep its own node always online.
  4. Layer2 generic message deliver (For Layer2 DApp deliver message).
  5. Offchain state can be compressed by proof(Merkle Proof or ZK Proof).

Note that features including already implemented and planned implementation.

Architecture

TODO

Note to Developers

  • Stargate is a prototype implement.
  • Project is under heavy development, not production ready.

Getting Started

Getting Started

Development

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

License

Stargate is licensed as Apache 2.0.

About

Stargate is the layer2 state channel protocol and implements of Starcoin

License:Apache License 2.0


Languages

Language:Rust 97.6%Language:Shell 1.2%Language:HCL 0.7%Language:Dockerfile 0.3%Language:Go 0.2%