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.
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.
-
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.
-
Comprehensive Security Architecture: An omnipresent, enterprise-grade security philosophy extending across the entire system lifecycle (not just a single module), built on 6 core pillars:
- Authorization (ABAC Policy Engine & MSP)
- Lockdown & Logging (Quorum-based Voting & Tamper-evident Logs)
- Fault-tolerance (BFT & Federation)
- Risk Analyzer (Real-time Z-score activity monitoring)
- Encryption (AES-256-GCM for storage, Ed25519 for signatures)
- Decentralized Zero-Knowledge Proofs (ZK Verifier for trustless chain anchoring)
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)
Traditional pip method:
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 -e .[dev]
Modern fast method with uv (recommended):
git clone https://github.com/VanDung-dev/HieraChain.git
cd HieraChain
# Install uv if not installed
curl -LsSf https://astral.sh/uv/install.sh | sh
# Auto create venv + install ALL dependencies in one command
uv sync
source .venv/bin/activate
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 | >700 |
| 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.
Metadata
Release files for HieraChain 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| hierachain-0.2.0.tar.gz | 334.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| hierachain-0.2.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 769.3 kB
Release files / hierachain-0.2.0.tar.gz
| Download URL | hierachain-0.2.0.tar.gz |
|---|---|
| Size | 334.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e1f229c428613d258fb33d7258229ae6b6108ea7d0309a794d55d6ee26755c02
|
|
BLAKE2b-256 checksum How to use checksums |
b2f46edc7e350dacab9d3b468ff8df557c1b231060fe362fe3080bca8469250c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.13
|
Release files / hierachain-0.2.0-py3-none-any.whl
| Download URL | hierachain-0.2.0-py3-none-any.whl |
|---|---|
| Size | 435.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
accd3e6df11aa55015cde4ca62ac7f5afb78d5b8c15e1bb0ddddf78554c1e3a3
|
|
BLAKE2b-256 checksum How to use checksums |
e6c83cb1fe2e4159e471f28bbdfa9c350b5dbc61d48b7200d7ffde53324760a1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.13
|