Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ujjwal-kr/night
The night protocol and interface written in rust and nextjs respectively
https://github.com/ujjwal-kr/night
blockchain react rust
Last synced: about 1 month ago
JSON representation
The night protocol and interface written in rust and nextjs respectively
- Host: GitHub
- URL: https://github.com/ujjwal-kr/night
- Owner: ujjwal-kr
- License: gpl-3.0
- Created: 2022-04-06T19:54:05.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-01-08T17:54:26.000Z (almost 2 years ago)
- Last Synced: 2024-05-01T19:02:44.216Z (8 months ago)
- Topics: blockchain, react, rust
- Language: Rust
- Homepage: https://night-protocol.netlify.app/explore
- Size: 610 KB
- Stars: 8
- Watchers: 3
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Night Protocol
A simple blockchain written from scratch in the rust programming language. This is a very simple protocol for me to reseach about how the functioning of a blockchain system works. Hoping to make this reachable to the people who are beginners in blockchain and web3 learn about what goes on under the hood of a chain. Follow the [detailed documentatation](https://night-protocol.netlify.app/explore) to know more.> **Note**
> I'm working on the architecture of user accounts using asymmetric encryption.## Stack
- Rust and rocket.rs as chain and backend
- Nextjs and mantine for client
- MDX for documentation## How to start the project
- Make sure to have rust and nodejs installed.
- Clone the repo
- `cd` into the `night_protocol` folder and run `cargo run`
- open another terminal instance and `cd` into the `client` folder and run `yarn && yarn run dev`
- Alternatively, you can only run the rust server and visit https://night-protocol.netlify.app to set it up.## How it works
It has 2 chains for now, the transaction chain and the master chain. When there are more than 100 blocks in the transaction chain, all of them are compressed and sent to a block in the master chain. I implemented this algorithm to make the validations faster. Its not peer to peer, but has all the characteristics of a normal chain. You can make transactions and also hopefully play a gambling game in the chain. I'm trying to make the multiple wallet system for now because currently it has support for only one wallet. [Find the detailed documentation here](https://night-protocol.netlify.app/explore)