Skip to content

Changelog

v0.0.4 (2026-05-25)

This release focuses on production-grade networking infrastructure, cryptographic integrity, and enterprise-grade stress testing, introducing Node Identity with Ed25519/Curve25519 keypairs, ZeroMQ CURVE encryption for P2P, API v3 secure event submission, comprehensive stress/chaos testing suite, Podman/OrbStack support, and dual-language documentation restructuring.

Improvements (7)
  • Node Identity & P2P Networking: Introduced NodeIdentity, ZeroMQ CURVE encryption, send_direct/broadcast methods, ping-pong heartbeat, propagated through BFT consensus, ordering service, and API. Added P2P settings (P2P_ENABLED, P2P_HOST, P2P_PORT).
  • API v3 & Cryptographic Signatures: New POST /api/v3/chains/{chain_name}/secure-events endpoint with Ed25519 signature verification, 1MB payload limit, and max depth 10. Added sender/signature fields to event schemas.
  • Consensus Hardening: Ed25519 signing for Proof of Federation, 30-second BFT timestamp drift check against replay attacks, block hash verification on reconstruction, configurable block_interval.
  • Security: Production ZK proof rejection (test environment bypass), HMAC constant-time comparison, threading.RLock in LockdownProtocol, PBKDF2 increased to 310,000 iterations.
  • Docker/K8s Infrastructure: Podman support (Compose and K8s), OrbStack migration, Nginx API Gateway with stealth explorer, Web2 gateway node, Redis deployment, dynamic identity generation, chaos controller.
  • Stress & Chaos Testing: New suites for network partition, node kill, CPU throttling, WAN simulation, DDoS, memory leak soak, WebSocket load, and storage benchmarks.
  • Multi-language Documentation: Vietnamese and English support, translated 16 workflows, how-to guides, API references. Rewrote AGENTS.md with AI behavioral principles.
Fix (3)
  • Consensus & Storage: Fixed block signature verification and auto key generation in PoA, corrected default return value in BFT handler, added 64-char SHA-256 proof_hash validation, chain integrity checks after deserialization.
  • API & SDK: Updated SDK default base URL from 8000 to 2661, sub-chain name regex validation, thread-safe RateLimiter, CID/nonce validation in IPFS client.
  • Build & Dependencies: Added uvicorn[standard], websockets, click, build, twine; pinned urllib3==2.7.0; bumped zensical and pymdown-extensions; pinned Python 3.12 in CI.

v0.0.3 (2026-05-02)

This release focuses on production readiness through comprehensive type safety improvements in hierachain/, Kubernetes StatefulSet deployment, robust stress testing infrastructure, and enhanced security validation.

Improvements (6)
  • Full Mypy Compliance: Resolved static typing warnings across consensus, API, security, network, monitoring, error mitigation, storage, adapters, hierarchical, domains, core and cluster modules.
  • Ed25519 Signature Validation: Enforced strict 64-byte length for Ed25519 signatures to prevent validation bypass.
  • JSON Canonicalization: Implemented robust JSON canonicalization for signature verification to ensure consistent cryptographic operations.
  • StatefulSet Migration: Migrated from Deployment to StatefulSet for stable node deployment with persistent identity.
  • Security: Added payload limit middleware, 24h timestamp validation, default API key prevention in production, refactored HMAC lockdown protocol.
  • Build & Packaging: Migrated dependency management to uv, pinned dependency versions, added uv.lock.
Fix (1)
  • Testing & Stability: Limited message log in BFT consensus, improved stress test client, fixed bare except clauses in integration tests, improved IPFS connection handling.

v0.0.2 (2026-04-04)

This release focuses on enhanced security, system observability, and important stability improvements for the core hierachain/ package, addressing real-world issues discovered during testing and evaluation.

Improvements (5)
  • Unified Secret & Credential Management:

    • Introduced unified SecretManager in config for secure credential management with multiple backend support.
    • Prevented accidental secret leakage in logs by masking secret names and backend identifiers.
    • Prevented automatic master key generation in production to require explicit key provisioning.
  • Security & Policy:

    • Added persistent storage for brute force lockouts and proactive rejection of dangerous input patterns in policy engine.
    • Enhanced directory creation checks to prevent path traversal attacks in SubChain SQLite database paths.
    • Added dedicated security module for GraphQL endpoint with input validation and access control.
  • Observability & Monitoring:

    • Integrated Prometheus metrics collection for real-time monitoring of API latency, block throughput, and consensus health.
    • Added JSON logging support for better integration with log aggregation systems like ELK and Loki.
    • Added simple alert methods and global instance manager for proactive event notification.
    • Enhanced API rate limiting with Redis backend for distributed deployments.
  • Core & Hierarchical Chain Improvements:

    • Implemented deadlock detection with timeout and recovery mechanisms in lock management.
    • Escalated missing ZK proof severity to critical and integrated automatic alert triggering.
    • Improved proof submission robustness and shutdown handling in hierarchical chains.
    • Added input validation for ChannelLedger.add_event to prevent malformed events.
  • Developer Tools & CLI:

    • Added dedicated CLI commands for key generation, backup, and recovery (python -m hierachain key ...).
    • Added endpoint to fetch specific blocks by index or hash for targeted audit.
    • Updated SDK client for full multi-chain API v3 support.
    • Synchronized block schema with event schema for consistent data structure.
Fix (3)
  • Consensus & Ordering Stability:

    • Resolved critical race condition in block commit and pending event handling in OrderingService.
    • Ensured lockdown and resume operations are atomic to prevent inconsistent state during maintenance.
    • Prevented silent data loss during transaction journal recovery with proper validation.
    • Improved state recovery logic with config validation and modularized recovery from transaction journal.
  • Core & Hierarchical Chain:

    • Fixed race condition in hierarchical chain management and added graceful shutdown procedures.
  • Build & Packaging:

    • Embedded config template into Python module to fix missing .env.HRC.example file when installing via pip.

v0.0.1 (2026-03-22)

This release marks the completion of HieraChain's initial architectural direction, focusing on consolidating core components into a unified prototype framework.

Improvements (4)
  • IPFS Storage Integration: Support for off-chain data storage with AES-256-GCM encryption and CID identifiers across all API interfaces (REST, GraphQL, WebSocket).
  • Performance & Scalability Optimization:

    • Parallel block processing in OrderingService.
    • Caching for certificate and permission validation.
    • Worker pool optimization (75% CPU) and multi-threading support for SQLite.
  • Developer Tools: Launched BlockchainExplorer dashboard and detailed technical documentation system.

  • Security & Integrity:

    • Merkle Root support in block header and storage.
    • Ensured hash consistency and thread-safety for core components.
    • Standardized security logging with SecureLogger.
Fix (1)
  • Stability & QA:

    • Fixed Chain Rehydration bug for correct state restoration after restart.
    • Improved CI/CD reliability with matrix testing and flaky test handling.