Skip to content

Commit eae7440

Browse files
authored
Merge pull request #21 from Steake/feature/economic-system-and-rewards
2 parents a172a89 + e8fb1bf commit eae7440

47 files changed

Lines changed: 2894 additions & 1757 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/benchmarks.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ on:
99
jobs:
1010
benchmark:
1111
name: Run Benchmarks
12-
runs-on: ubuntu-latest
12+
runs-on: ubuntu-latest-xl
1313
steps:
1414
- uses: actions/checkout@v4
1515

.github/workflows/ci.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
runs-on: ${{ matrix.os }}
1717
strategy:
1818
matrix:
19-
os: [ubuntu-latest, macos-latest, windows-latest]
19+
os: [ubuntu-latest-xl, macos-latest, windows-latest]
2020
rust: [stable]
2121
steps:
2222
- uses: actions/checkout@v4
@@ -53,7 +53,7 @@ jobs:
5353

5454
fmt:
5555
name: Rustfmt
56-
runs-on: ubuntu-latest
56+
runs-on: ubuntu-latest-xl
5757
steps:
5858
- uses: actions/checkout@v4
5959
- uses: dtolnay/rust-toolchain@stable
@@ -63,7 +63,7 @@ jobs:
6363

6464
clippy:
6565
name: Clippy
66-
runs-on: ubuntu-latest
66+
runs-on: ubuntu-latest-xl
6767
steps:
6868
- uses: actions/checkout@v4
6969
- uses: dtolnay/rust-toolchain@stable
@@ -73,7 +73,7 @@ jobs:
7373

7474
build:
7575
name: Build
76-
runs-on: ubuntu-latest
76+
runs-on: ubuntu-latest-xl
7777
steps:
7878
- uses: actions/checkout@v4
7979
- uses: dtolnay/rust-toolchain@stable
@@ -86,7 +86,7 @@ jobs:
8686

8787
security:
8888
name: Security Audit
89-
runs-on: ubuntu-latest
89+
runs-on: ubuntu-latest-xl
9090
steps:
9191
- uses: actions/checkout@v4
9292
- uses: dtolnay/rust-toolchain@stable
@@ -99,7 +99,7 @@ jobs:
9999

100100
coverage:
101101
name: Code Coverage
102-
runs-on: ubuntu-latest
102+
runs-on: ubuntu-latest-xl
103103
steps:
104104
- uses: actions/checkout@v4
105105
- uses: dtolnay/rust-toolchain@stable

.github/workflows/release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
fail-fast: false
2020
matrix:
2121
include:
22-
- os: ubuntu-latest
22+
- os: ubuntu-latest-xl
2323
target: x86_64-unknown-linux-gnu
2424
artifact_name: bitcell-linux-x86_64
2525
- os: macos-latest
@@ -115,7 +115,7 @@ jobs:
115115
release:
116116
name: Upload Release Assets
117117
needs: build
118-
runs-on: ubuntu-latest
118+
runs-on: ubuntu-latest-xl
119119
if: github.event_name == 'release'
120120
permissions:
121121
contents: write

README.md

Lines changed: 41 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
[![Rust](https://img.shields.io/badge/rust-1.82%2B-orange.svg)](https://www.rust-lang.org/)
66
[![License](https://img.shields.io/badge/license-MIT%2FApache--2.0-blue.svg)](LICENSE)
7-
[![Status](https://img.shields.io/badge/status-alpha-yellow.svg)](https://github.com/Steake/BitCell)
7+
[![Status](https://img.shields.io/badge/status-RC1-green.svg)](https://github.com/Steake/BitCell)
88

99
> _"We don't mine blocks. We cultivate them in a Conway garden where only the fittest gliders survive."_
1010
@@ -174,9 +174,14 @@ Three independent circuits:
174174
**v0.1**: Individual Groth16 proofs
175175
**Future**: Recursive aggregation via Plonk/STARK
176176

177-
## Economics (Deterministic Payouts)
177+
## Economics (Bitcoin-Style Halving)
178178

179179
```
180+
Initial block reward: 50 CELL
181+
Halving interval: 210,000 blocks (~4 years)
182+
Maximum halvings: 64 (subsidy reaches 0)
183+
Total supply: ~21 million CELL
184+
180185
block_reward = base_subsidy(h) + tx_fees + contract_fees
181186
182187
Distribution:
@@ -252,13 +257,17 @@ BitCell/
252257
│ ├── bitcell-ebsl/ # Evidence tracking, trust scores, slashing
253258
│ ├── bitcell-zkp/ # Groth16 circuits (battle, exec, state)
254259
│ ├── bitcell-consensus/ # Blocks, tournament protocol, fork choice
255-
│ ├── bitcell-state/ # State management, bonds, accounts
260+
│ ├── bitcell-state/ # State management, bonds, accounts (RocksDB)
256261
│ ├── bitcell-zkvm/ # Private smart contract execution
257-
│ ├── bitcell-economics/ # Rewards, fees, treasury
258-
│ ├── bitcell-network/ # P2P, gossip, compact blocks
259-
│ └── bitcell-node/ # Miner/validator/light client nodes
260-
├── docs/ # Architecture, specs, tutorials
261-
├── benches/ # Performance benchmarks
262+
│ ├── bitcell-economics/ # Rewards, fees, treasury, halving
263+
│ ├── bitcell-network/ # libp2p, gossip, DHT, compact blocks
264+
│ ├── bitcell-node/ # Miner/validator nodes, JSON-RPC, WebSocket
265+
│ ├── bitcell-wallet/ # CLI wallet
266+
│ ├── bitcell-wallet-gui/ # GUI wallet with tournament visualization
267+
│ ├── bitcell-admin/ # Admin console with metrics
268+
│ └── bitcell-simulation/ # Network simulation and testing
269+
├── docs/ # Architecture, specs, release notes
270+
├── scripts/ # Development and testing scripts
262271
└── tests/ # Integration tests
263272
```
264273

@@ -302,33 +311,38 @@ We're in alpha. Things break. PRs welcome.
302311

303312
## Roadmap
304313

305-
### v0.1 (Current: Alpha)
314+
### v0.1 ✅ (Alpha)
306315
- [x] Core crypto primitives (ECDSA, VRF, ring sigs, commitments)
307316
- [x] CA engine with battles (1024×1024 grid, Conway rules, energy)
308317
- [x] EBSL trust scores (evidence tracking, decay, slashing)
309-
- [ ] ZK circuits (battle verification, execution, state)
310-
- [ ] Consensus structures (blocks, tournament, fork choice)
311-
- [ ] P2P networking (gossip, compact blocks)
312-
- [ ] Local testnet
313-
314-
### v0.2 (Beta)
315-
- [ ] ZKVM execution
316-
- [ ] Smart contract deployment
317-
- [ ] State management
318-
- [ ] Full validator implementation
319-
- [ ] Public testnet
320-
- [ ] Explorer
321-
322-
### v0.3 (Candidate)
318+
- [x] ZK circuits (battle verification, execution, state constraints)
319+
- [x] Consensus structures (blocks, tournament, fork choice)
320+
- [x] P2P networking (libp2p-based gossip, DHT)
321+
- [x] Local testnet
322+
323+
### v0.2 ✅ (Beta)
324+
- [x] ZKVM execution framework
325+
- [x] Smart contract deployment (basic)
326+
- [x] State management with RocksDB persistence
327+
- [x] Full validator implementation
328+
- [x] GUI Wallet with tournament visualization
329+
- [x] Admin console with metrics
330+
331+
### v0.3 (Current: Release Candidate 1)
332+
- [x] JSON-RPC and WebSocket APIs
333+
- [x] Block reward halving mechanism (Bitcoin-style economics)
334+
- [x] Transaction processing and mempool
335+
- [x] Comprehensive economic parameters
336+
- [x] Security improvements (DoS protection, gas limits)
323337
- [ ] Light clients
324338
- [ ] Bridge to Ethereum
325339
- [ ] DeFi primitives
326-
- [ ] Governance system
327-
- [ ] Security audit
328340

329341
### v1.0 (Mainnet)
330-
- [ ] Production-ready zkSNARKs
331-
- [ ] Optimized CA performance
342+
- [ ] Production-ready zkSNARKs (recursive aggregation)
343+
- [ ] Governance system
344+
- [ ] Security audit
345+
- [ ] Optimized CA performance (SIMD/GPU)
332346
- [ ] Mobile wallets
333347
- [ ] Full documentation
334348
- [ ] 🚀 Launch

README.old.md

Lines changed: 0 additions & 2 deletions
This file was deleted.

0 commit comments

Comments
 (0)