Improved Clarity on Key Evaluation Return Messages

This commit is contained in:
SimplifiedPrivacy 2026-05-16 11:55:52 -04:00
parent 38226f149a
commit 998f0dc883

View file

@ -121,7 +121,7 @@ def is_the_key_to_blame(
if not result_of_comparison: if not result_of_comparison:
error_msg = "New key is the SAME as the old one." error_msg = "New key is the SAME as the old one."
ticket_observer.notify("preparing", subject=error_msg) ticket_observer.notify("preparing", subject=error_msg)
return {"valid": False, "message": "same"} return {"valid": False, "comparison": "same"}
status_update = "New key is DIFFERENT from the old one!" status_update = "New key is DIFFERENT from the old one!"
ticket_observer.notify("preparing", subject=status_update) ticket_observer.notify("preparing", subject=status_update)
@ -142,9 +142,9 @@ def is_the_key_to_blame(
if quantity_results > 0: if quantity_results > 0:
logger.debug("Therefore, the new key works.") logger.debug("Therefore, the new key works.")
return {"valid": True, "comparison": "different", "matters": False} return {"valid": True, "comparison": "different"}
else: else:
logger.debug( logger.debug(
"Therefore, the new key doesn't help. It is different, but also produces invalid blind signatures." "Therefore, the new key doesn't help. It is different, but also produces invalid blind signatures."
) )
return {"valid": False, "comparison": "different", "matters": False} return {"valid": False, "comparison": "different"}