Coder Social home page Coder Social logo

spacemint's Introduction

Spacemint

This is a prototype of Spacemint (Spacecoin), which is described in more detail at https://eprint.iacr.org/2015/528.pdf (Cryptocurrency) https://eprint.iacr.org/2013/796.pdf (Proof-of-space; PoS). This README explains some implementation details.

The proof-of-space part of this is being re-implemented, and a version of it is already moved to https://github.com/kwonalbert/pospace.

##Structure of the graph

For proof-of-space, the graphs are generated once, and are read only for rest of its life-time. Moreover, the only operations we need to do are parent look up and hash lookups. We therefore pick a simple graph representation in the file system, and avoid using a more sophisticated solution like graph database.

The graphs used in the prototype from PTC76 (Paul, Tarjan and Celoni). The graph is recursively generated. Each node is just a hash, and you can directly access the node by reading hash at id * size of hash. The code is written in a way to minimize the HDD head movement, at the cost of some minor compute during initialization.

##Directory Structure block/ Cryptocurrency block files

pos/ Proof-of-Space implementation

util/ Various utilities used by block and pos

spacemint's People

Contributors

kwonalbert avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.