Giter VIP home page Giter VIP logo

poh-golang's Introduction

Proof of History - Concepts in Go

 ________  ________  ___  ___         
|\   __  \|\   __  \|\  \|\  \        
\ \  \|\  \ \  \|\  \ \  \\\  \       
 \ \   ____\ \  \\\  \ \   __  \      
  \ \  \___|\ \  \\\  \ \  \ \  \ ___ 
   \ \__\    \ \_______\ \__\ \__\\__\
    \|__|     \|_______|\|__|\|__\|__| go!
                           

Objective

Provide source-code concepts from the Solana whitepaper in Golang to understand proof-of-history and the mechanics behind Solana further.

Used as an exercise to understand Proof of History further by writing a simple implementation as described in the whitepaper.

Usage

make build

Build from source

./bin/poh-golang

Run a proof-of-history to generate the hashrate on a single core, and validate the results on all available CPU cores

CPU Cores 8
Generate Hashrate 1482625 p/sec (1-core)
Verify Hashrate 4701530 p/sec (8-cores)
Verify Hashrate 587691 p/core

Benchmarks

make bench

Simulate benchmarks to generate proof-of-history (POH) using a single core, and verify the output on multiple cores.

Roadmap

  • Calculate hashrate for POH generation (single core)
  • Calculate hashrate for POH validation (multiple cores)
  • Implement Solana hash table indexes for user addresses and packet payloads described in the whitepaper.
  • Add GPU support via Cuda implementation of SHA256
  • Synchronize multiple POH validators on the local network
  • Implement event signatures
  • Add basic Proof of Stake implementation as per the Solana whitepaper
  • Implement vote support for PoS implementation
  • Implement election for PoS and simulate PoH generator failure
  • Add PoH election support and secondary validator promotion
  • Implement Streaming proof of Replication using basic CBC encryption and XOR inputs

poh-golang's People

Contributors

benduncan avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  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.