A Private Blockchain which is capable of allowing users to register stars and retrieve data about the blockchain.
The Private Blockchain is implemented using NodeJS. REST API is designed using ExpressJS which is a Node Framework.
- Get Block data using its height
- Get Block data using its hash
- Request for validation when a user enter his/her address which in turn returns a message to be signed by the user's wallet
- Submit a star registry within 5 minutes of signing the message along with providing signature hash, wallet address, message and the stars that the user is willing to register
- Verification of signed message and the constraint that the submission is done within 5 minutes of message generation is checked
- The user receives the block data after he has registered successfully for the star.
- Get star registry of a particular user using wallet address
- bitcoinjs-lib - For verifying wallet address ownership
- bitcoinjs-message - For verifying the signed message
- express - Node framework used to create The REST API
- body-parser - Used as a middleware module for Express and will help us to read the json data submitted in a POST request
- crypto-js - Module containing some of the most important cryptographic methods and will help us create the block hash.
- hex2ascii - For decoding the data saved in the body of the block
- morgan - HTTP request logger middleware for Node JS
Dinesh B S |
Licensed under MIT License : https://opensource.org/licenses/MIT