GithubHelp home page GithubHelp logo

simple-blockchain-in-js's Introduction

Blockchain in Javascript

scriptCoin

This is a simple project written in JavaScript to show the fundamental principles behind how Blockchain technology works.

For this tutorial I'll use currency transactions, similar to that of Bitcoin, but called scriptCoin. However, this is only for demonstrative purposes.

It is important to note that Blockchain is not the same as Bitcoin. Blockchain is one of the architectural principles on which cryptocurrenies, like Bitcoin, are built.

What is Blockchain

Blockchain is an immutable, unhackable distributed database of digital information.

It is built on a peer-to-peer network which means that anyone can see what's going on, and it requires no centralised governance to authenticate or settle transactions. This decentralised transparency is fundamental to the blockchain's architecture, in that it creates its security and truthfulness.

Blocks

It uses state-of-the-art cryptography, to keep a log of all records (i.e transactions), that once accepted onto the Blockchain, cannot be changed. To change the truthfulness of an existing block, a new block needs to be created and accepted by all other truth nodes on the system.

A block is a list of newly generated information. Each block has a hash of the new information and that of the previous block. The hash of the previous block is added to the new block creating a link.

Being transparent ensure nodes on the blockchain can reach an ultimate truth as all records can be verified against other nodes, and further verified against past blocks.

There are two types of operations that can be done on a blockchain, read and write.

Anonymous and Secure

Users on the Blockchain are anonymous. There isn't any need for Person A to know Person B before initiating a transaction or exchanging information. Everything can be verified by looking at previous blocks to draw a conclusion. This makes the blockchain inherently truthful.

Currently, a common use case for Blockchain technology is to facilitate financial transactions. However, it can be used to store information about who married whom, voting records, identities, and just about any other form of information. You can use the Blockchain to create a virtual representation of yourself, which though it's in the open, it cannot be defrauded or forgotten.

simple-blockchain-in-js's People

Contributors

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