Writing an simplified blockchain with JavaScript.
We initiate blocks with data further we implement a chain of these blocks and finally observe the state of chain.
- Javascript
- Install nodejs. https://nodejs.org/en/download/current/
- Required libraries:
- crypto-js
-
Clone the repo.
-
Open terminal/command prompt and traverse to the repo.
-
We need to import the required libraries. Run the following command:
npm i crypto-js
-
Now we run the file.
node {filename}.js
- You will be displayed with the state of the chain!
- ACM IIT Roorkee Student Chapter