Skip to content

Permacoin Implementation

Alexander Chepurnoy edited this page Feb 25, 2016 · 28 revisions

Permacoin whitepaper describes how to use non-interactive Proof-of-Retrievability scheme to build a consensus protocol for a blockchain-based system thus repurposing miners work for data preservation. This article describes how Permacoin concept is implemented as Scorex module. Please note,there are some improvements known, e.g. Retricoin, and they are not considered for inclusion yet.

How Permacoin Is Implemented

All the Scala code implementing Permacoin is located within scorex-perma/src/main/scala/scorex/perma/consensus folder. Other parts of the module are describing storage, settings, API, network protocol additions. Functions are defined in PermaConsensusModule.scala. An algorithm is based on "Local-POR lottery"(Fig. 2, p. 7 in the paper).

Clone this wiki locally