HieraChain - The Hierarchical Blockchain Enterprise Ledger
Project description
HieraChain - The Hierarchical Blockchain Enterprise Ledger
English | Tiếng Việt
Overview
HieraChain is an enterprise ledger built on hierarchical blockchain technology, designed specifically for business applications without any cryptocurrency concepts. Rather than being a general-purpose blockchain platform focused on digital currencies, HieraChain provides a secure, hierarchical ledger structure for managing business operations and processes.
This ledger implements a multi-layer hierarchical architecture where Main Chains supervise Sub-Chains, enabling scalable and secure business process management. All operations within the system are referred to as "events" rather than "transactions," emphasizing its focus on business applications.
Project Ecosystem
HieraChain is part of a larger ecosystem of blockchain tools:
| Project | Language | Description |
|---|---|---|
| HieraChain | Python | Main hierarchical blockchain ledger (this repository) |
| HieraChain-Consensus | Rust | Official Core Consensus - optimized implementation with Python/C bindings |
Note: While this repository includes a pure Python consensus implementation, the HieraChain-Consensus library is recommended for production deployments requiring high performance.
Key Features
- Hierarchical Structure: Multi-layer architecture with Main Chains (supervisors) and Sub-Chains (domain experts).
- Consensus Mechanisms: Supports Proof of Authority (PoA), Proof of Federation (PoF), and Byzantine Fault Tolerant (BFT) consensus.
- Enterprise Security: Ed25519 signatures, AES-256-GCM encryption, Membership Service Provider (MSP), and robust API Key authentication.
- High Performance: Columnar storage with Apache Arrow, hybrid caching, and parallel event processing.
- Reliability & Recovery: Durable transaction journaling, automated failure recovery, and state rollback capabilities.
Documentation
Comprehensive documentation is available at our official website docs.hierachain.org:
- Getting Started - Installation and basic setup
- Architecture - System design and hierarchical model
- Core Modules - Detailed breakdown of system components
- Guides & How-To - Step-by-step implementation guides
- API Reference - REST API and configuration details
Quick Start
Installation
Via PIP (recommended)
pip install HieraChain
From source (for development)
git clone https://github.com/VanDung-dev/HieraChain.git
cd HieraChain
python -m venv venv
source venv/bin/activate # Linux/macOS (or venv\Scripts\activate on Windows)
# Install dependencies and project in dev mode
pip install -r requirements.txt
pip install -e .
Basic Usage
from hierachain.hierarchical import HierarchyManager
manager = HierarchyManager()
manager.create_sub_chain("supply_chain")
# Add an event
manager.add_event("supply_chain", {
"entity_id": "PROD-001",
"event": "production_complete",
"timestamp": 1703088000.0,
"details": {"quantity": 100}
})
# Submit proof to main chain
manager.submit_proof("supply_chain")
API Server:
python -m hierachain
API available at http://localhost:2661/docs
Technical Specifications
| Metric | Value |
|---|---|
| Test Cases | >600 |
| Python Support | 3.10, 3.11, 3.12, 3.13 |
| Consensus Types | PoA, PoF, BFT |
| Signature Algorithm | Ed25519 |
| Encryption | AES-256-GCM |
License
This project is dual licensed under either the Apache-2.0 License or the MIT License. You may choose either license.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file hierachain-0.0.1.tar.gz.
File metadata
- Download URL: hierachain-0.0.1.tar.gz
- Upload date:
- Size: 357.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
caa715e0d821bc5627a14ae0ad584a89e86468731649e1a28a7ce1e52eb8907f
|
|
| MD5 |
6adb19d26da3ec6fc5dd5679d2a509a9
|
|
| BLAKE2b-256 |
af3e2cae951ec8ea7a5a776da24b2a45b11f6ec947476714f19ed7cbe4097bd9
|
File details
Details for the file hierachain-0.0.1-py3-none-any.whl.
File metadata
- Download URL: hierachain-0.0.1-py3-none-any.whl
- Upload date:
- Size: 429.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b1e82895621204843c8c85ae4b65726bbbc3dc678b3bfbd62f6d8431c1d8d5b6
|
|
| MD5 |
c71b14efa71fad2bd7c394860e8eac40
|
|
| BLAKE2b-256 |
ccc60cf2b26cbc070c7ad588ffd2978e1be2297bc4ecc915d35da9ebfcf19ccd
|