Skip to content

SmartMeshFoundation/SmartPlasma

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
doc
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Build Status GoDoc

SmartPlasma

Plasma, Plasma Cash & Plasma XT implementation in Go

Tests

For Linux and Mac

cd $GOPATH/src/github.com/SmartMeshFoundation/SmartPlasma
go test -v ./... -count=1

Examples

Simple example

The test demonstrates:

  • creation of a deposit in Plasma Cash
  • transfer between users
  • withdrawal of tokens from Plasma Cash

Information is not displayed in the console, see comments in code.

For Linux and Mac

cd $GOPATH/src/github.com/SmartMeshFoundation/SmartPlasma/example/simple
go run example.go

Cycle example

  • Total 1000 users.
  • Each user owns 20 deposits.
  • Each cycle, each user transfers all his deposits to another user.
  • Then the operator collects a block.
  • He stores it in the database and sends the block hash to a Spectrum blockchain.

Assumptions:

  1. Clients do not save transactions on their side.
  2. Transactions is not checked.

For Linux and Mac

cd $GOPATH/src/github.com/SmartMeshFoundation/SmartPlasma/example/cycle
go run example.go

About

Plasma, Plasma Cash & Plasma XT implementation in Go

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages