Skip to content

EtherCS/ShardCon

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Introduction

ShardCon is a layer-two framework which aims to efficiently and securely support arbitrarily complex cross-shard contracts in blockchain sharding systems.

ShardCon has the following salient features:

  • Compatible. ShardCon can be easily integrated into existing blockchain sharding systems with minor modifications.
  • Low latency. ShardCon can achieve low confirmation latency of millisecond level for cross-shard contracts, which is far lower than the current sharding systems.
  • Complex contracts supporting. ShardCon supports the complex cross-shard contract execution, which enhances application areas of sharding systems.
  • Secure execution. ShardCon can guarantee the secure execution for cross-shard contracts. Any misbehaviors performed by users or off-chain nodes can be detected.

Demos

  1. Hello World Contract:
  • Print: return a "Hello World!" message to the user
  1. Token Contract:
  • Create: a user creates an account in the Token contract
  • Get: check balance of a user in the Token contract
  • Transfer: a user transfer his token to another user of the Token contract
  1. Vote Contract:
  • Nominate: the contract creator adds a set of candidates and specifies a group of users as the voters
  • Vote: a voter gives its ballot to a candidate
  1. Auction Contract:
  • AddItem: the contract creator releases a new item
  • Bid: a user bids on a specific item
  1. Complex Contract 1:
  • call1: the contract calls another contract
  1. Complex Contract 2:
  • call2: the contract calls other two contracts

How to use?

step 1: build the Occlum

please see https://github.com/occlum/occlum

step 2: Start Chainspace

please see ./chainspace/for_testing/README.md

step 3: Start test the performance of our model

Enter the ./Client directory, and refer to related README for different tests.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published