https://github.com/naman-45/bitcoints
Complete Bitcoin implementation
https://github.com/naman-45/bitcoints
aes-gcm express nextjs postgresql prisma-orm pubsub redis singleton-pattern websocket
Last synced: 2 months ago
JSON representation
Complete Bitcoin implementation
- Host: GitHub
- URL: https://github.com/naman-45/bitcoints
- Owner: Naman-45
- Created: 2024-10-23T11:29:29.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2025-02-09T20:20:08.000Z (over 1 year ago)
- Last Synced: 2025-02-09T21:23:45.604Z (over 1 year ago)
- Topics: aes-gcm, express, nextjs, postgresql, prisma-orm, pubsub, redis, singleton-pattern, websocket
- Language: TypeScript
- Homepage:
- Size: 104 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# **BitcoinTS**
A simplified Bitcoin system design implementation in TypeScript.

## 🌟 Overview
BitcoinTS is a decentralized blockchain network that enables secure transactions using a proof-of-work consensus mechanism. This project consists of multiple components that replicate the core functionalities of Bitcoin.
## ⚙️ **System Components**
### 🖥 **Central Server (WebSocket Server)**
- Acts as a communication hub for all connected miners.
- Facilitates transaction propagation across the network.
- Ensures all miners are synchronized.
### ⛏ **Miner Server**
- Handles block creation and proof-of-work computation.
- Verifies transaction signatures, balances, and block validity.
- Rejects erroneous or smaller blockchains.
- Syncs up with the latest blockchain state when starting.
### 💻 **Frontend**
- Enables users to create Bitcoin wallets.
- Allows users to sign transactions and send them to miner servers.
- Displays blockchain status and transaction history.
## 🚀 **Getting Started**
### **1️⃣ Clone the Repository**
```sh
git clone https://github.com/your-repo/BitcoinTS.git
cd BitcoinTS