-
-
Notifications
You must be signed in to change notification settings - Fork 0
Home
DeCub (short for Decentralized Compute Platform) is an open-source distributed computing infrastructure project developed by REChain-Network-Solutions. It provides a Byzantine Fault Tolerant (BFT) system for executing computational workloads across decentralized clusters — aiming to replace centralized cloud models with a secure, resilient, and scalable peer-to-peer compute fabric. ([GitHub][1])
DeCub is engineered as a next-generation decentralized compute system that supports distributed execution, storage, and state synchronization across a global network of nodes. Its architecture blends classical distributed systems techniques (e.g., RAFT consensus) with global BFT coordination, content-addressable storage, CRDT-based metadata, and advanced cryptographic proofs to ensure consistency, integrity, and fault tolerance. ([GitHub][1])
The codebase is primarily implemented in Go and organized into multiple modules covering various aspects like control plane, snapshotting, gossip protocols, catalog management, object storage, and cryptography. ([GitHub][1])
DeCub defines a five-layer architecture, each with clear responsibilities:
Provides workload orchestration, resource allocation, decentralized service discovery, and APIs (REST/gRPC) for external integration. It enables containerized deployments and lifecycle management across clusters. ([GitHub][1])
- Local Consensus (RAFT): Ensures strong consistency within individual clusters.
- Global Consensus (BFT): Ensures Byzantine fault tolerance across the entire decentralized network.
- Hybrid Two-Phase Commit (2PC): Coordinates transactions that span local and global domains. ([GitHub][1])
Supports flexible data persistence and synchronization:
- Content-Addressable Storage (CAS) for immutable blob storage.
- CRDT Catalog for conflict-free metadata replication.
- Distributed Ledger for append-only transaction logs.
- Object Storage with S3-compatible interface. ([GitHub][1])
Handles peer-to-peer communication and state propagation via:
- Gossip protocols using libp2p.
- Anti-entropy synchronization with Merkle verification.
- NAT traversal and automatic peer discovery.
- Load balancing across nodes. ([GitHub][1])
Implements cryptographic safeguards:
- Hierarchical key management.
- ECDSA signatures for authentication.
- TLS encryption for secure transport.
- Zero-knowledge proofs for privacy-preserving verifications. ([GitHub][1])
DeCub merges RAFT for fast, reliable cluster-level consensus with BFT consensus for global state finality, enabling trustless operation even if up to one-third of nodes behave maliciously. ([GitHub][1])
Data is stored based on its cryptographic hash, enabling efficient deduplication, verification, and decentralized distribution. ([GitHub][1])
CRDTs maintain consistent metadata across all nodes without locking or central coordination, enabling scalable replication. ([GitHub][1])
Nodes propagate state deltas through gossip, while anti-entropy reconciles differences using Merkle tree verification for integrity. ([GitHub][1])
DeCub exposes programmable API endpoints for:
-
Catalog Management: POST /catalog/snapshots, GET /catalog/query, etc. ([GitHub][1])
-
Gossip Control: GET /gossip/status, POST /gossip/sync, and delta exchanges. ([GitHub][1])
-
Consensus Transactions: POST /consensus/transactions, block/transaction queries. ([GitHub][1])
-
Object Storage: PUT /storage/objects/{id}, GET /storage/objects/{id}, and chunk management. ([GitHub][1])
These APIs enable external services and applications to register snapshots, propagate state, query metadata catalogs, and manage distributed storage. ([GitHub][1])
DeCub defines clear data paths for snapshot creation, registration, replication, and restoration:
- Snapshot Creation: Chunk data and generate SHA-256 hashes.
- Upload & Registration: Store chunks in CAS and register metadata in CRDT catalog.
- Global Consensus: Register changes via the global consensus layer.
- Replication & Sync: Use gossip to propagate and reconcile state.
- Retrieval: Fetch and reassemble snapshots via verified chunk hashes. ([GitHub][1])
This lifecycle ensures that data is verifiable, durable, and efficiently synchronized across the network. ([GitHub][1])
DeCub leverages cryptographic proof systems such as Merkle proofs to verify data integrity and enable trustless synchronization without centralized validation points. ([GitHub][1])
Example (pseudocode for Merkle proof verification):
func VerifyMerkleProof(root []byte, proof MerkleProof, leaf []byte, index int) bool {
hash := leaf
for _, sibling := range proof.Hashes {
...
}
...
}This ensures that any node can independently verify the inclusion and correctness of data chunks in the global dataset. ([GitHub][1])
DeCub aims for high throughput, fault tolerance, and wide scalability in decentralized environments. Its hybrid consensus and layered design target workloads where security, resilience, and decentralization matter more than traditional centralized cloud performance. ([GitHub][1])
Typical folders include:
-
cmd/– executable entry points. -
decub-*modules – subsystems (catalog, gossip, storage, crypto). -
config– configuration assets. -
tests– integration & unit tests. - Deployment manifests (Docker, Kubernetes).
- Implementation TODOs and test plans. ([GitHub][1])
The project is distributed under the BSD-3-Clause License, promoting open usage and modification with minimal restrictions. ([GitHub][1])
DeCub is part of a broader technology trend toward Decentralized Physical Infrastructure Networks (DePIN) and decentralized compute frameworks, which seek to challenge centralized cloud paradigms by distributing compute and data workloads across peer-to-peer networks. ([Reddit][2])
Compared to other projects aiming at DePIN computing markets or GPU sharing, DeCub focuses on protocol-level consistency guarantees and cryptographic verification, addressing one of the key challenges in decentralized compute: trustless correctness of execution and state. ([Reddit][3])