It is a very basic implementation of how blockchain works, mainly how the bitcoin blockchain.

Overview

How to run this program

npm install node core/blockchain.js

What is this

It is a very basic implementation of how blockchain works, mainly how the bitcoin blockchain. It is easy as compared to Ethereum because ETH did more complex transactions as compared to Bitcoin. but the underlying tech is almost the same.

the main part of a blockchain

  • hash function here we used sha256
  • block
  • block header
  • blockchain

what is hash function

it generates the figerprint for your data for example if data is "anish" => sha256("ansih") => 085e34e043a0cd8433abb5b780e37596a2578985d24bec4cefacfd9e32ba5bdb

sha256 is a really powerful cryptographic function that is used by Bitcoin as well

Block

Block is used to contain the transaction data block. like - block height/block number - block size - block header

Block header

it is something which contains all the info about the block like version, previous block hash, timestamp, Markerl root, and bits

Merkerl root is a combination of all transactions is a very easy term watch this video for more info @ivan's https://www.youtube.com/watch?v=VkWiTvPnTcY

bits still in doubt @anni Bhai please explain

now the blockchain

  • inside block chain we have Genesis block aka the first block is a blockchain
  • and add block function which is used to add block into the chain

watch this video for more understanding and python implementation https://www.youtube.com/watch?v=K1hS1ire-Og

You might also like...

🦜️🔗 This is a very simple re-implementation of LangChain, in ~100 lines of code

🦜️ 🔗 LangChain-mini This is a very simple re-implementation of LangChain, in ~100 lines of code. In essence, it is an LLM (GPT-3.5) powered chat app

Aug 14, 2023

Bitcoin thin client for iOS & Android. Built with React Native Google Colab

Bitcoin thin client for iOS & Android. Built with React Native Google Colab

Run bluewallet-Google-Colab https://colab.research.google.com/drive/1OShIMVcFZ_khsUIBOIV1lzrqAGo1gfm_?usp=sharing Thin Bitcoin Wallet. Built with Reac

Feb 25, 2022

A wrapper for a mercado bitcoin!

About A library developed from the bitcoin marketplace api! With it you can check values of cryptos, tokens and ntfs Usage const cripto = require('mer

Oct 25, 2022

A port of bitcoin-core that will (over time) become TS friendly.

bitcoin-core A modern Bitcoin Core REST and RPC client to execute administrative tasks, multiwallet operations and queries about network and the block

Nov 22, 2022

A website for tracking community support for BIP21 QR codes that support on-chain and lightning bitcoin payments.

BIP21 Microsite This is a WIP microsite to promote the usage of a BIP21 payment URI QR code that can include lightning invoices or offers. Wallet supp

Nov 27, 2022

MultiSafe is a shared crypto wallet for managing Stacks (STX) and Bitcoin (BTC).

MultiSafe MultiSafe is a shared crypto wallet for managing Stacks (STX) and Bitcoin (BTC). Deploy a MultiSafe https://app.multisafe.xyz/ Features Curr

Dec 26, 2022

Fixed-point math for Bitcoin Script

bsv-fixmath Fixed-point implementations of exp, log, root and pow for Bitcoin SV. This repo contains two equivalent implementations, one in Typescript

Oct 18, 2022

created a very simple blockchain. just for fun.

SimpleBlockChain created a very simple blockchain. just for fun. Run: node main.js What happens? basically we create a new blockchain, and later we ad

Dec 25, 2021

BASIC is a web application contains basic applications related to studies, love, health, weather, productivity. This project aim to simply the user's life in anyway.

BASIC is a web application contains basic applications related to studies, love, health, weather, productivity. This project aim to simply the user's life in anyway.

BASIC is a web application contains basic applications related to studies, love, health, weather, productivity. This project aim to simply the user's life in anyway. Supported by all operating system, need an internet connection for working properly.

Dec 19, 2021
Owner
Anish Jain
I am a full stack web developer and currently working on Blockchain and Dapps
Anish Jain
Bitcoin terminal tracker is a terminal app which allow you to track bitcoin price from your terminal

BTC Terminal Tracker Bitcoin terminal tracker is a terminal app which allow you to track bitcoin price from your terminal. In this version (V1.2) I ch

Sina yeganeh 9 Jul 27, 2022
A "Basic-to-Lisp" compiler. But Basic is not real Basic, and Lisp is not real Lisp.

Basic2Lisp A "Basic-to-Lisp" compiler. But Basic is not real Basic, and Lisp is not real Lisp. Syntax Print-Sth Put some-value to standard output. PRI

Hana Yabuki 5 Jul 10, 2022
A simple JS To Do List bundled using Webpack. You can add new tasks, edit existing tasks, check completed tasks, and delete tasks from the list. It is built mainly with Javascript.

To-Do-List A simple HTML list of To Do built using webpack and served by a webpack dev server. Live Link See Demo Built With HTML, CSS, Javascript To

Michael Ugochukwu 3 May 10, 2022
College project done for the CG Artwork lecture in 2022. Used HTML for the indexes and mainly JavaScript (using to THREE.js). Ended with the final A grade (17.3 in scale grade).

CG Artwork Project 2022 This project was done by a group of 3 in 2022 with an educational purpose for the CG Artwork lecture in Instituto Superior Téc

filipe_neves 3 Sep 19, 2022
An exercise in building a very minimal (and very stupid) in-memory SQL-like database for educational purposes.

Stupid Database This is an exercise in building a very minimal (and very stupid) in-memory SQL-like database for educational purposes. None of this co

Fabio Akita 196 Dec 20, 2022
A Very Good Documentation Site created by the Very Good Ventures Team 🦄

Very Good Docs Site Developed with ?? by Very Good Ventures ?? A Very Good Docs Site created by the Very Good Ventures Team. Generated by the Very Goo

Very Good Open Source 8 Nov 2, 2022
This is a simple Image popup Jquery plugin. With a very simple configuration, you can show a popup on your webpage. By the way, this plugin works after page load.

Jquery-SingleImagePopup This is a simple Image popup Jquery plugin. With a very simple configuration, you can show a popup on your webpage. By the way

Rajan Karmaker 1 Aug 22, 2022
Hacktoberfest is all about meeting up all brains. In this repository we are planning to come with many ideas and works. You all can share your ides/works here.

Hacktoberfest Submit your Work Hacktoberfest is all about meeting up all brains. In this repository we are planning to come with many ideas and works.

Chinmay Patil 3 Oct 5, 2022
Example api, in Portuguese, to show very basic fundamentals of an express server.

Servidor de texto Aqui é um exemplo simples de como usar o express para servir um valor da memória do servidor para o front como resposta a cada requi

João Saraceni 2 Jan 7, 2022