Skip to content

v0.0.1.dev2

Pre-release
Pre-release

Choose a tag to compare

@VanDung-dev VanDung-dev released this 24 Dec 11:13
· 1786 commits to main since this release

HieraChain v0.0.1.dev2 - Bug Fix

Pre-release Warning: This is a development preview and is not intended for production use. APIs may change without notice.

What's New

This release focuses on bug fixes and Linux/WSL compatibility improvements based on testing feedback from v0.0.1.dev1.

Bug Fixes

Linux/WSL Compatibility

  • Fixed path validation for Linux absolute paths in transaction journal
  • Added support for paths starting with / and WSL mount points (/mnt/c/...)
  • Updated component validation regex to allow . and ~ characters

BFT Consensus (Critical Fix)

  • Fixed nonce not being passed during message reconstruction
  • This caused signature verification to fail in ZMQ-based consensus
  • ZMQ consensus demo now reaches supermajority correctly

Event Validation

  • Fixed missing entity_id field in system events (genesis, registration, proof submission)
  • Events were being incorrectly rejected by OrderingService validation

API Compatibility

  • Added create_private_data_collection() alias method to HierarchyManager
  • Added complete_operation() method to HierarchyManager

Demo & Scripts

  • Fixed demo.py - corrected parameter type for update_entity_status()
  • Improved sarif_analysis.py with proper error handling

Documentation

  • Updated DEV_GUIDE.md with correct demo file references
  • Added demo_zmq_consensus.py documentation
  • Added Developer Scripts section

Platform Compatibility

Platform Status
WSL Ubuntu 24.04 LTS ✅ Tested
Linux (Native) ✅ Supported

Files Changed

File Changes Commit
hierachain/error_mitigation/journal.py Linux path validation fix ad497b1
hierachain/core/blockchain.py Added entity_id to genesis event 63dcf4e
hierachain/hierarchical/main_chain.py Added entity_id to system events 94312ca
hierachain/hierarchical/sub_chain.py Added entity_id to system events 94312ca
hierachain/hierarchical/hierarchy_manager.py Added missing methods 17cd075
hierachain/hierarchical/consensus/bft_consensus.py Fixed nonce in message reconstruction 9f156fd
demo/demo.py Fixed update_entity_status parameter 8706f54
scripts/sarif_analysis.py Improved error handling e41caae

Technical Specifications

Metric Value
Source Files 96 Python files
Lines of Code ~30,000
Test Cases 371
Python Support 3.10, 3.11, 3.12, 3.13

Known Limitations

  • Not production-ready
  • Documentation still in progress

Links


Full Changelog: v0.0.1.dev1...v0.0.1.dev2