Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

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

README.md

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

Releases

No releases published

Packages

No packages published

Languages

You can’t perform that action at this time.