feat: Add email address and fingerprint to exported key file names (#5694)

This way it's clearer which key is which and also adding the key fingerprint to the file name avoids
overwriting another previously exported key. I think this is better than adding an incremental
number as we do for backups, there's no need to export a key several times to different files.
This commit is contained in:
iequidoo
2024-06-28 11:20:02 -03:00
committed by iequidoo
parent 436b00e3cb
commit f81daa16b3
2 changed files with 43 additions and 34 deletions

View File

@@ -30,7 +30,7 @@ def test_qr_setup_contact(acfactory, tmp_path) -> None:
bob2.export_self_keys(tmp_path)
logging.info("Bob imports a key")
bob.import_self_keys(tmp_path / "private-key-default.asc")
bob.import_self_keys(tmp_path)
assert bob.get_config("key_id") == "2"
bob_contact_alice_snapshot = bob_contact_alice.get_snapshot()