HYCON Code Review: SPECTRE Consensus Algorithm

HYCON is building the Infinity Platform, simple enough for anyone to build their own customized blockchain, guess I’ll be out of a job.

A lot of focus here on accountability and transparency, security, things that DAGs are ostensibly good at.

“HYCON, which stands for Hyperconnected Coin, is the digital asset built on top of a faster and more scalable blockchain developed by the Infinity Project team. Using a DAG (Directed Acyclic Graph) structure, it has the capability to publish several blocks simultaneously with the ability to resolve conflicting transactions and reject double-spends through the SPECTRE consensus algorithm.”

I’ve been interested in exploring DAG solutions lately, they promise horizontal scalability, but often neglect to mention finality.

Whitepaper is pretty thin, let’s head over to the code.

 

 

Typescript. Interesting choice. Apparently Javascript is the choice for DAG developers.

 

1*aWSHRsAxCuh4xMEadELQGQ HYCON Code Review: SPECTRE Consensus Algorithm

 

Cryptonight hashing Proof-of-work.

 

1*esbSAUJqjdCH1Kf5yOSrfg HYCON Code Review: SPECTRE Consensus Algorithm

 

Protobuff.

 

1*2HXO8xKl20LFKXNSiSR4Uw HYCON Code Review: SPECTRE Consensus Algorithm

 

Main has standard command line arguments;

 

1*xNnidz78KtU_5GYr3tk0Eg HYCON Code Review: SPECTRE Consensus Algorithm

 

./server is our entry point.

 

1*W2DtmJXMYA8iOdD1iVVvDw HYCON Code Review: SPECTRE Consensus Algorithm

 

Ledger support.

 

1*L1O_NS7-bOQIsojGysDWhg HYCON Code Review: SPECTRE Consensus Algorithm

 

Reminder to go look at their private key generation.

 

1*uyHcLe3XIwLYBOUoVddm5A HYCON Code Review: SPECTRE Consensus Algorithm

 

BIP key generation 101.

 

1*MCkAfJXsHABGCFT8IloV_w HYCON Code Review: SPECTRE Consensus Algorithm

 

Secp256k1

 

1*nL9SIQr5qmnckK1VpriFZg HYCON Code Review: SPECTRE Consensus Algorithm

 

Wallets are AES password encrypted on the local drive.

 

1*QFvbTXByBctJ3CHFd-o84Q HYCON Code Review: SPECTRE Consensus Algorithm

 

Good code structure and layout, easy to follow.

Jumping back to ./server

 

1*hbECKjuakHSnz6EEZnQXSg HYCON Code Review: SPECTRE Consensus Algorithm

 

WorldState, Consensus, RabbitNetwork, MinerServer, RestManager. Let’s hunt them down.

 

1*S-a4xvttGlbp7hTX4kHyhA HYCON Code Review: SPECTRE Consensus Algorithm

 

Longest Chain rule. Bit disappointing.

 

1*U0IQjmVk7w6RYbcDc-jQkQ HYCON Code Review: SPECTRE Consensus Algorithm

 

Levelup.


HYCON Code Review Conclusion:

Just another DAG. Code is fine, but not great or interesting. Good design from an architectural point of view, but it won’t achieve horizontal scalability since it still has the finality bottleneck. The greater the network, the longer the propagation ,and thus the more generation rounds required to reach finality.

READ  Hypernet ICO Review and HYPR Token Analysis

All the 101 components are here though, so it is a DAG, it just doesn’t do much other than that.


 

You can chat about HYCON in our Telegram group.

Disclaimer: Crypto Briefing code reviews are performed by auditing what is on display in the master branch of the repo’s made available. This was performed as an educational review and any comments in the article are the opinion of the writer. It is normal for code to change rapidly, hence we timestamp our code reviews so that they present a snapshot at a moment in time. Information contained herein should not be used as any comment or advice on the project as a whole.

HYCON Code Review Timestamp: July 31st 2018

 



Source link

pinit_fg_en_rect_red_28 HYCON Code Review: SPECTRE Consensus Algorithm

Spread the love
  • pinit_fg_en_rect_gray_20 HYCON Code Review: SPECTRE Consensus Algorithm

Related posts

Leave a Comment