Plasma, Plasma Cash & Plasma XT implementation in Go
cd $GOPATH/src/github.com/SmartMeshFoundation/SmartPlasma
go test -v ./... -count=1
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.
cd $GOPATH/src/github.com/SmartMeshFoundation/SmartPlasma/example/simple
go run example.go
- 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:
- Clients do not save transactions on their side.
- Transactions is not checked.
cd $GOPATH/src/github.com/SmartMeshFoundation/SmartPlasma/example/cycle
go run example.go