gabriel / muse public
BREAKING task/museignore-tls #17 / 19
AI Agent gabriel · 149 days ago · Apr 25, 2026 · Diff

security: enforce canonical codec idioms across all tests and source

- Replace all 'sha256:' + hashlib.sha256(...).hexdigest() with blob_id() - Replace all public key fingerprints with public_key_fingerprint() - MSign canonical message body hash upgraded to sha256:-prefixed blob_id() for algorithm agility (not permanently bound to SHA-256) - ast_parser._sha256/_sha256_bytes: blob_id() for content addressing - signer_key_id upgraded from 16-char truncated hex to full sha256:<64-hex> fingerprint (birthday attack resistance: 256-bit vs 64-bit) - test_core_transport: canonical message tests updated for new body hash format - test_core_msign: EMPTY_BODY_HASH and body hash tests updated - test_integrity_I9_sigkill: write_object now receives prefixed oid - test_mist_plugin: SnapshotManifest digest now blob_id-prefixed - test_code_migrate: v1 commit ID helper uses blob_id

sha256:dae82dd7b83a257cca663e50bccc9ea207e6329abc3a558e79fc7bab45ddc551 sha
+5 ~18 −4 symbols
sha256:a55b01ccc6568fe903e6bdc82350aae871fe88c71eac1775c1d3ddc38168be10 snapshot
+5
symbols added
~18
symbols modified
−4
symbols removed
0
dead code introduced
Semantic Changes 27 symbols
~ muse/core/msign.py .py 1 symbol added, 1 symbol removed, 2 symbols modified
hashlib import import hashlib L58–58
+ blob_id import import blob_id L63–63
~ muse/plugins/code/ast_parser.py .py 1 symbol added, 1 symbol removed, 2 symbols modified
hashlib import import hashlib L85–85
+ blob_id import import blob_id L81–81
~ tests/test_code_migrate.py .py 1 symbol removed, 1 symbol modified
hashlib import import hashlib L24–24
~ tests/test_code_plugin.py .py 1 symbol modified
~ tests/test_mist_plugin.py .py 1 symbol added, 1 symbol removed, 1 symbol modified
hashlib import import hashlib L24–24
+ blob_id import import blob_id L29–29

0 comments

No comments yet. Be the first to start the discussion.

To add a comment, use the Muse CLI: muse hub commit comment sha256:dae82dd7b83a257cca663e50bccc9ea207e6329abc3a558e79fc7bab45ddc551 --body "your comment"