GithubHelp home page GithubHelp logo

hive-chain's Introduction

Little project in rust to make a cryptocurrency. It is based on GeekLaunch's "Build a cryptocurrency in Rust" series, you can watch it here

This project includes:

  • Basic blockchain, blocks and transactions
  • Basic Block verification
  • Example on how to create genesis blocks
  • Example on how to mine blocks

There's still a couple of things missing in this cryptocurrency and its tests that I would like to add in my offtime, here's a few things:

  • Test miners don't take money from any address, instead they take only from addresses that transfered any money in the last block in the blockchain
  • No way to get the current amount of money on an address (or even a cached version)
  • Verifications could be a little more extensive
  • No Blockchain api to interact with the blockchain from outside
  • Blockchain could a use a generic type like Blockchain<Block> to support other purposes
  • Miners could be multithreaded
  • Difficulty doesn't update every block
  • Block mining times are inconsistent because of the latter
  • Fee isn't based on the transactions

I made this for fun, don't go around judging my code :D. If you want to base it on my code feel free

hive-chain's People

Contributors

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