-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Enhance segment integrity, senary encoding, CBOR support, and a…
…dd robust testing encoding_utils.py Enhancements: Refined encode_to_senary and decode_from_senary for improved modularity and debuggability. Added cbor_encode_senary and cbor_decode_senary for .seigr-specific CBOR support. Updated utility functions to handle both dictionaries and lists for seamless encoding. hash_utils.py Improvements: Extended hypha_hash with senary-based hashing, enhancing .seigr ecosystem compatibility. Integrated CBOR encoding for hashed outputs, improving data integrity checks. hypha_crypt.py Additions: Expanded HyphaCrypt to support both senary and hexadecimal hashing. Introduced options for exporting logs in CBOR and JSON formats for greater flexibility. Enhanced integrity verification processes with support for partial-depth checks. Added extensive logging for detailed traceability in encryption and hashing. immune_system.py Development: Built immune_ping to handle multi-layered segment integrity verification using verify_segment_integrity. Implemented rollback_segment to enable secure rollbacks with rollback availability verification. Integrated adaptive monitoring and threat response mechanisms for high-risk segments. Comprehensive logging added for threat logging, integrity verification, and rollback attempts. rollback.py Refinements: Created verify_rollback_availability to check rollback feasibility. Developed revert_segment_data and helpers to restore metadata, links, and coordinate index from prior states. Detailed logging added to support debugging during rollback operations. integrity.py Updates: Enhanced verify_segment_integrity with senary hash validation. Improved verify_full_lineage_integrity and verify_file_metadata_integrity for lineage and file metadata continuity. Testing Improvements: Built test_immune_system.py to validate integrity, rollback, threat responses, and adaptive replication. Mocked SeigrFile, SegmentMetadata, and ReplicationController for thorough, isolated unit testing. Verified CBOR compatibility, senary encoding, and adaptive replication triggers. Tested encryption, decryption, and full/partial verification across modules. Ensured module stability across all functionalities, achieving full test pass. All functionality is now fully tested and stable, with clear logging for efficient debugging and improved traceability across the .seigr ecosystem.
- Loading branch information
Showing
28 changed files
with
1,151 additions
and
523 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.