Skip to content

A complete Private Blockchain that allows users to register stars and get data about the blockchain

License

Notifications You must be signed in to change notification settings

DineshBS44/PrivateBlockchain

Repository files navigation

Star Registry

A Private Blockchain which is capable of allowing users to register stars and retrieve data about the blockchain.

How is the blockchain built?

The Private Blockchain is implemented using NodeJS. REST API is designed using ExpressJS which is a Node Framework.

Features

  • 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

Libraries/services used

  • 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

Developer

Dinesh B S

Dinesh B S (Insert Your Image Link In Src

License

Licensed under MIT License : https://opensource.org/licenses/MIT



About

A complete Private Blockchain that allows users to register stars and get data about the blockchain

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published