Skip to content
forked from garyyu/go-dag

BlockDAG algorithm simulation for paper "PHANTOM: A Scalable BlockDAG protocol".

Notifications You must be signed in to change notification settings

forchain/go-phantom

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

phantom

BlockDAG algorithm's Go language simulation for paper "PHANTOM: A Scalable BlockDAG protocol".

Here is the paper link on International Association for Cryptologic Research (IACR) by Yonatan Sompolinsky and Aviv Zohar in Feb. 2018.

They have setup a start-up company to develop BlockDAG since Q4 2017, their website: [https://www.daglabs.com]. And there's an official DAGlabs slack channel: [https://daglabs.slack.com].


How to build

Run the simulation for the example on the paper P.7 Fig.3, for algorithm 1 Selection of a blue set.

$ go test -run=Fig3

Run the simulation for the example on the paper P.16 Fig.4, for algorithm 1 Selection of a blue set.

$ go test -run=Fig4

Run the simulation for the example on P.3 Fig.2, P.8 "C. Step #2", for algorithm 2 Ordering of the DAG.

$ go test -run=Fig2

Run the benchmark test:

$ go test ./phantom -bench=Blocks -benchmem

$ go test ./ -test.bench BlueSelection -benchmem  -run=^$

$ go test ./ -test.bench BlockOrdering -benchmem  -run=^$

About

BlockDAG algorithm simulation for paper "PHANTOM: A Scalable BlockDAG protocol".

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 100.0%