Skip to content
This repository has been archived by the owner on Jun 17, 2022. It is now read-only.

Latest commit

 

History

History
52 lines (32 loc) · 1.85 KB

README.md

File metadata and controls

52 lines (32 loc) · 1.85 KB

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.