Skip to content
This repository was archived by the owner on Jun 17, 2022. It is now read-only.
/ stargate Public archive

Stargate is the layer2 state channel protocol and implements of Starcoin

License

Notifications You must be signed in to change notification settings

starcoinorg/stargate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

5147825 · Feb 1, 2020
Jan 13, 2020
Jan 13, 2020
Dec 26, 2019
Jan 17, 2020
Jan 13, 2020
Jan 17, 2020
Jan 9, 2020
Feb 1, 2020
Jan 6, 2020
Jan 13, 2020
Jan 13, 2020
Nov 1, 2019
Jan 15, 2020
Dec 17, 2019
Jan 13, 2020
Dec 20, 2019
Jan 9, 2020
Jan 6, 2020
Jan 13, 2020
Jan 20, 2020
Jan 8, 2020
Jan 15, 2020
Dec 17, 2019
Jan 9, 2020
Dec 20, 2019
Jan 15, 2020
Jan 6, 2020
Oct 18, 2019
Jan 3, 2020
Jan 9, 2020
Oct 28, 2019
Jan 7, 2020
Nov 18, 2019
Oct 15, 2019
Jan 17, 2020
Oct 25, 2019

Repository files navigation

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.