All Projects β†’ anders94 β†’ Blockchain Demo

anders94 / Blockchain Demo

Licence: mit
A web-based demonstration of blockchain concepts.

Programming Languages

Pug
443 projects
javascript
184084 projects - #8 most used programming language
CSS
56736 projects
Dockerfile
14818 projects

Projects that are alternatives of or similar to Blockchain Demo

Compile Hero
πŸ”°Visual Studio Code Extension For Compiling Language
Stars: ✭ 169 (-95.85%)
Mutual labels:  pug
Pug Bootstrap
Bootstrap framework written completely using mixins in Pug
Stars: ✭ 212 (-94.8%)
Mutual labels:  pug
Startbootstrap Sb Admin
Start Bootstrap is an open source library of free Bootstrap templates and themes. All of the free templates and themes on Start Bootstrap are released under the MIT license, which means you can use them for any purpose, even for commercial projects.
Stars: ✭ 2,861 (-29.77%)
Mutual labels:  pug
Feathericon
simply generic vector icon collection - including sketch file, svg files, and font files.
Stars: ✭ 178 (-95.63%)
Mutual labels:  pug
Quassel Webserver
A web server/client for Quassel
Stars: ✭ 193 (-95.26%)
Mutual labels:  pug
Gulp Pug Starter
Frontend development with pleasure. Pug + SCSS version
Stars: ✭ 228 (-94.4%)
Mutual labels:  pug
Terminal theme
A simple theme based on hexo πŸ‘»πŸ‘»πŸ‘»
Stars: ✭ 160 (-96.07%)
Mutual labels:  pug
Email Templates
πŸ“« Create, preview, and send custom email templates for Node.js. Highly configurable and supports automatic inline CSS, stylesheets, embedded images and fonts, and much more!
Stars: ✭ 3,291 (-19.22%)
Mutual labels:  pug
Markuplint
A Linter for All Markup Languages.
Stars: ✭ 193 (-95.26%)
Mutual labels:  pug
Jade
Jade.go - pug template engine for Go (golang)
Stars: ✭ 251 (-93.84%)
Mutual labels:  pug
Aero
πŸš„ Fastest node.js framework. Go version is actively maintained: @aerogo
Stars: ✭ 181 (-95.56%)
Mutual labels:  pug
Hexo Theme Laughing
A lightweight hexo theme
Stars: ✭ 185 (-95.46%)
Mutual labels:  pug
Gulp Front
Frontend boilerplate and framework based on gulp, pug, stylus and babel
Stars: ✭ 237 (-94.18%)
Mutual labels:  pug
G0v.tw
g0v.tw site
Stars: ✭ 170 (-95.83%)
Mutual labels:  pug
Bibliogram
An alternative front-end for Instagram.
Stars: ✭ 281 (-93.1%)
Mutual labels:  pug
Pug As Jsx Loader
Stars: ✭ 168 (-95.88%)
Mutual labels:  pug
V Bar
The virtual responsive crossbrowser scrollbar component for VueJS 2x
Stars: ✭ 216 (-94.7%)
Mutual labels:  pug
Kratos Boilerplate
πŸ”₯ A simple boilerplate for creating statics PWA using Webpack, Pug, PostCSS and CSS Modules
Stars: ✭ 308 (-92.44%)
Mutual labels:  pug
Thebestmotherfuckingwebsite
The title says it all.
Stars: ✭ 288 (-92.93%)
Mutual labels:  pug
Bootstrap3 Pug Former jade Node Express Grunt
Bootstrap 3 templated by Jade
Stars: ✭ 242 (-94.06%)
Mutual labels:  pug

Blockchain Demo

A web-based demonstration of blockchain concepts.

Blockchain 101 - Demo

This is a very basic visual introduction to the concepts behind a blockchain. We introduce the idea of an immutable ledger using an interactive web demo that is available here:

http://anders.com/blockchain/

Setup

Get the code:

git clone https://github.com/anders94/blockchain-demo.git

Install dependencies:

cd blockchain-demo
npm install

Run the server:

npm start

OR

./bin/www

#For windows: if the above command didn't work, use this (make sure you have Node.js installed in your system):

node ./bin/www      

Point a web browser at the demo:

http://localhost:3000

Setup using Docker

Get the code:

git clone https://github.com/anders94/blockchain-demo.git

Run the Docker setup:

cd blockchain-demo
docker-compose up -d

Point a web browser at the demo:

http://localhost:3000

Optional Configuration

You can adjust the "number of zeros" required by the demo by editing the first two lines of public/javascripts/blockchain.js.

Because there are 16 possible characters in a hex value, each time you increment the difficulty by one you make the puzzle 16 times harder. In my testing, a difficulty of 6 requires a maximumNonce well over 500,000,000.

If you adjust the difficulty above 4, blocks will show up as not mined because the demo data assumes 4 zeros for a signed block. For example, on the http://localhost:3000/block page with a difficulty of 6, the first nonce that works is 8719932 yielding a hash of 000000669445c22167511857d8f3b822b331c3342f25dfdcb326e35c1a7aa267. This gets out of hand fairly quickly though. Here's some time estimates at the various thresholds.

digits nonce time estimate
4 500,000 15 minutes
5 8,000,000 4 hours
6 128,000,000 3 days
7 2,048,000,000 a month
8 32,768,000,000 2 years
9 524,288,000,000 30 years
10 8,388,608,000,000 481 years
11 134,217,728,000,000 7,690 years
12 2,147,483,648,000,000 123,036 years
13 34,359,738,368,000,000 1,968,581 years
14 549,755,813,888,000,000 31,497,291 years
15 8,796,093,022,208,000,000 503,956,662 years

In the production bitcoin blockchain, block 458,091 has the hash digest 00000000000000000000011246f099d94f91628d71c9d75ad2f9a06e2beb7e92. That's 21 zeros in a row! That one block would take this software approximately 8,454,989,768,407,765 years to mine.

Public Private Key Demo

The 2nd part of the 101 session:

Send Thanks

Bitcoin gratefully accepted: 1K3NvcuZzVTueHW1qhkG2Cm3viRkh2EXJp

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].