https://github.com/helyousfi/spartanchain
https://github.com/helyousfi/spartanchain
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/helyousfi/spartanchain
- Owner: helyousfi
- Created: 2025-08-03T21:03:26.000Z (3 months ago)
- Default Branch: main
- Last Pushed: 2025-08-05T18:27:45.000Z (2 months ago)
- Last Synced: 2025-08-05T20:19:55.575Z (2 months ago)
- Language: C++
- Size: 132 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
sudo apt install libssl-dev
# SpartanChain
SpartanChain is a lightweight, secure cryptocurrency and blockchain implementation written in modern C++. It includes a cryptographic wallet system, transaction management, and a simple CLI for interacting with the chain.
---
## Features
- Wallet generation using OpenSSL (RSA or EC keys)
- Transaction creation and signing
- Block mining with basic proof-of-work
- Command-line interface (CLI)
- Blockchain explorer (basic output)
- Save/load wallets and blockchain data---
## Requirements
- C++17 or later
- [OpenSSL](https://www.openssl.org/) (for cryptography)
- CMake (for building)---
## Build Instructions
```bash
git clone https://github.com/yourusername/spartanchain.git
cd spartanchain
mkdir build && cd build
cmake ..
make
```## Usage
```bash
./spartanchain
```CLI Commands:
- Create a transaction
- create_wallet - Generate a new wallet
- load_wallet path/to/file - Load existing wallet
- send
- mine - Mine a new block and receive reward
- chain - View the current blockchain
- balance - Show wallet balance
- exit - Exit the CLI