Git Product home page Git Product logo

how-build-your-own-blockchain's Introduction

My Pull Request

In this repository, you'll find the source code for my pull request.

I set out to build a blockchain inspired by the Ethereum implementation.

I wrote an in-depth post about the features I implemented, the architecture and the overall approach. I chose to write it on Medium, as it is easier to format. I recommend reading the post, as it aims to explain my work clearly. The main features implemented are:

Smart Contracts

Enable users to write smart contracts and decentralized applications where they can create their own arbitrary rules for ownership, transaction formats and state transition functions.

Accounting Systems

Users will be able to register accounts (external accounts) with a balance, and initiate transfers of funds. Additionally, users can register contract accounts and deploy smart contracts across the network

Transaction-based state machine

State is composed of ownership status of currency within the system. All actions dispatched by nodes in the network are verified and checked before mutating state and being written to the blockchain.

Secured and validated transactions and state transitions.

Authenticating accouts is done via RSA encryption. Upon account initialization a private, public key pair is created and written to disk. These keys are used to digitally sign outgoing transaction requests with the account credentials.

Getting Started

  • npm install

  • navigate to root of how-build-your-own-blockchain and run tsc -w (assuming you have the typescript compiler installed globally)

Postman with new API calls

Please load the Postman client with the postman_collection_omer.json file.

Running Scripts

The src/shell-scripts dir contains all of the tests. Each test is explained in the Medium post.

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.