How troyer-perfectstorm/hblockchain works
Main Components
A. Core Blockchain Components:
• Blockchain Manager (Blockchain.cs)
• Block Structure (Block.cs)
• Transaction System (Transaction.cs)
• Account Management (Account.cs)
B. Cryptographic Components:
• Signing System (ISigner.cs, ECSigner.cs)
• Verification System (IVerifier.cs, ECVerifier.cs)
• Hashing Utilities (Hash256.cs, Hash512.cs)
┌─ Application Layer ─────────────────────┐
• Program.cs (Entry Point) │
• ┬────────────────────┘
• ↓
┌─ Core Layer ──────────────────────────┐
• ┌─────────────┐ ┌────────────┐ │
• Blockchain │←────→│ Block │ │
• ┘ └────────────┘ │
• ↑ ↑ │
• ┌─────────────┐ ┌────────────┐ │
• Transaction │ │ Account │ │
• ┘ └────────────┘ │
• ┬────────────────────┘
• ↓
┌─ Cryptographic Layer ──────────────────┐
• ┌─────────────┐ ┌────────────┐ │
• ISigner │ │ IVerifier │ │
• (ECSigner) │ │(ECVerifier)│ │
• ┘ └────────────┘ │
• ┌─────────────┐ ┌────────────┐ │
• Hash256 │ │ Hash512 │ │
• ┘ └────────────┘ │
• ┘
Important Elements to Highlight
a. Data Flow:
• Transaction creation and signing process
• Block mining and validation flow
• Account balance verification path
b. Key Processes:
• Proof of work mechanism
• Transaction validation
• Block creation and chaining
Implementation Details to Note
• Single-token system
• Pending transaction pool
• Account balance query path
• Proof of work validation flow
Limitations to Document
A small note section mentioning:
• No network layer implementation
• Single-threaded operation
• Local-only execution