Giter VIP home page Giter VIP logo

goblockchain's Introduction

About GoBlockchain

A basic Blockchain implementation written in Golang. Project presents low level build of blockchain network that is formed by decentalized nodes. To illustrate basic operations covered by nodes, each step is displayed to user interface in order to understand flow of information (transactions, blocks) and processes (mining, resolving conflicts between neighbours).

Moreover besides the network, clients are able to create own wallet (private and public keys generation) instruct a new transactions and view currently verified transactions based on node chosen by ip address.

Embraced topics

  • Nodes
    • Neighbours
    • Mining
      • Proof-Of-Work (nonce guessing)
      • Hashing
      • Adding block
      • Reward transaction for mined block
    • Consensus Protocol (resolving chains conflict between nodes/neighbours)
  • Client
    • Wallet generation (private and public keys based on ECDSA)
    • Creating transaction (signing transaction cryptographically)
    • Sending transaction to certain node

Package Structure

    GoBlockchain    # Root Package
    .
    ├── blockchain          # Node back-end files
    │   └── ui              # Node react interface
    |
    └── blockchain_client   # Client back-end files
        └── ui              # Client react interface

Running the example

In the base folder

docker-compose up -d

will run 3 nodes, 1 client and UIs for each participant as below

Example architecture

Features

  • Client
    • Wallet generator Wallet Generator
    • Create Transaction Create Transaction
    • Confirm Transaction (creating signature for transaction) Confirm Transaction
    • View transactions (downloading transaction from mined blocks) View Transactions
  • Node
    • View unverified transactions pool and mined transaction View transactions
    • Neigbours management Neighbours Management

Future work

  • gossip transactions

React design helpers

Project inpiration

goblockchain's People

Contributors

mirooon avatar dependabot[bot] 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.