A simple blockchain with javascript
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src
.gitignore
LICENSE
README.md
package-lock.json
package.json
test.html

README.md

Blockchain-Javascript-ES6-module

A simple blockchain with javascript as Node.js Module. Use test.html to play around!

Usage

Save your Hash function in window.myHashFunction

initialize

Initialize the Blockchain.

window.myHashFunction = sha256(); /* your Hash function */
let blockchain = new Blockchain(); /* Blockchain extends Array. */

add Data (create new Block)

blockchain.addBlock('data');

check integrity

blockchain.isChainValid()
/* returns true or false */