{"id":20393095,"url":"https://github.com/ujjwal-kr/night","last_synced_at":"2025-04-12T11:55:01.983Z","repository":{"id":41906553,"uuid":"478706724","full_name":"ujjwal-kr/night","owner":"ujjwal-kr","description":"The night protocol and interface written in rust and nextjs respectively","archived":false,"fork":false,"pushed_at":"2023-01-08T17:54:26.000Z","size":625,"stargazers_count":8,"open_issues_count":1,"forks_count":2,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-26T06:43:22.663Z","etag":null,"topics":["blockchain","react","rust"],"latest_commit_sha":null,"homepage":"https://night-protocol.netlify.app/explore","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ujjwal-kr.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-04-06T19:54:05.000Z","updated_at":"2023-03-09T16:44:07.000Z","dependencies_parsed_at":"2023-02-08T07:01:58.989Z","dependency_job_id":null,"html_url":"https://github.com/ujjwal-kr/night","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ujjwal-kr%2Fnight","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ujjwal-kr%2Fnight/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ujjwal-kr%2Fnight/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ujjwal-kr%2Fnight/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ujjwal-kr","download_url":"https://codeload.github.com/ujjwal-kr/night/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248565051,"owners_count":21125415,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["blockchain","react","rust"],"created_at":"2024-11-15T03:47:28.070Z","updated_at":"2025-04-12T11:55:01.949Z","avatar_url":"https://github.com/ujjwal-kr.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Night Protocol\nA 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.\n\n\u003e **Note**\n\u003e I'm working on the architecture of user accounts using asymmetric encryption.\n\n## Stack\n- Rust and rocket.rs as chain and backend\n- Nextjs and mantine for client\n- MDX for documentation\n\n## How to start the project\n- Make sure to have rust and nodejs installed.\n- Clone the repo\n- `cd` into the `night_protocol` folder and run `cargo run`\n- open another terminal instance and  `cd` into the `client` folder and run `yarn \u0026\u0026 yarn run dev`\n- Alternatively, you can only run the rust server and visit https://night-protocol.netlify.app to set it up.\n\n## How it works\n\nIt 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)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fujjwal-kr%2Fnight","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fujjwal-kr%2Fnight","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fujjwal-kr%2Fnight/lists"}