BinaryChain
Home
Status
Mine
Transactions
Peers
Concepts
Home
Status
Mine
Transactions
Peers
Concepts

Blockchain Concepts

Cryptographic Security

Ensures transaction integrity and wallet security using elliptic curve cryptography.

Implementation

Implemented in lib/wallet.ts (key pair generation, transaction signing) and lib/cryptoUtil.ts (hashing). Uses ECDSA for signing transactions.

Visual Breakdown

Key

Distributed Ledger

A decentralized record of all transactions maintained across nodes.

Implementation

Managed in lib/blockchain.ts (chain array) and persisted via prisma/schema.prisma. Nodes sync via /api/blockchain/receive.

Visual Breakdown

Block 1
Block 2
Block 3

Consensus Algorithm

Uses Proof-of-Work to agree on the valid chain state.

Implementation

Implemented in lib/block.ts (mineBlock method) and lib/blockchain.ts (difficulty adjustment).

Visual Breakdown

PoW

Immutable Records

Ensures blocks cannot be altered once added to the chain.

Implementation

Enforced in lib/blockchain.ts (isChainValid method) by checking hash integrity and previousHash links.

Visual Breakdown

Locked

Smart Contracts

Programmable logic to automate transactions (placeholder for future implementation).

Implementation

Not yet implemented. Planned for lib/contract.ts and execution in transactions.

Visual Breakdown

Contract

Peer-to-Peer Network

Nodes communicate to share blocks and transactions.

Implementation

Managed in lib/blockchain.ts (peers Set, broadcastBlock) and api/peers/add.ts, api/peers/list.ts endpoints.

Visual Breakdown

Node 1
Node 2
Node 3
BinaryChain

Empowering the future with decentralized technology and real-time blockchain visualizations.

Explore

Documentation
About
Privacy

Connect

GitHubTwitterDiscord

© 2025 BinaryChain. Open source MIT license.