chore: complete PEM removal — delete vestigial functions and update all tests
Remove all remaining references to generate_hd_keypair, load_private_key, key_path_for, load_private_key_from_pem, and key_path from production code and tests. Every caller now uses derive_hd_public_info.
Production changes: - keypair.py: deleted generate_hd_keypair, load_private_key, key_path_for, load_private_key_from_pem, _write_private_key_pem, _hostname_key, _SAFE_AGENT_ID, _key_path, _ensure_keys_dir; kept _KEYS_DIR sentinel - identity.py: deleted _check_key_file_permissions, _load_private_key_from_path - sign.py: deleted --key-path flag and key_path branch from _load_signing - auth.py: removed key_path from _RecoverJson, _RotateJson, _ShowJson, _ShowOutputJson; updated run_recover and run_rotate to keychain + HD derivation
Test changes: - test_keygen_no_bytes_copy.py: migrated to derive_hd_public_info, no isolated fixture - test_derived_key_zeroing.py: migrated to derive_hd_public_info - test_agent_signing.py: deleted TestAgentKeyPaths PEM tests, added TestKeypairDistinctness using derive_hd_public_info - test_cmd_auth_keygen_register.py: deleted PEM-based TestKeypairModule tests, kept fingerprint and distinctness tests via derive_hd_public_info - test_public_key_fingerprint.py: migrated generate_hd_keypair call - test_cmd_auth_keygen_hd.py: migrated TestGenerateHdKeypair to derive_hd_public_info - test_auth_hd_persistence.py: deleted generate_hd_keypair docstring test - test_auth_supercharge.py: removed key_path from _KeygenJson expected keys, _ShowJson tests, _human/_agent fixtures; fixed register performance/stress tests to use save_identity + keychain patch instead of generate_hd_keypair - test_cmd_sign.py: deleted test_key_path_override_loads_from_file
0 comments
muse hub commit comment sha256:91e554b0348decd7e718215e1633ff9e9c38c298a96dbae82b1e1e00077f3498 --body "your comment"
No comments yet. Be the first to start the discussion.