From c60e554fc2e74c75e5075d7853babed7e282025c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Damir=20Jeli=C4=87?= Date: Fri, 10 May 2019 12:09:10 +0200 Subject: [PATCH] store: Change the name of the device key fields in the dict. --- pantalaimon/panctl.py | 2 +- pantalaimon/store.py | 4 ++-- pantalaimon/ui.py | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/pantalaimon/panctl.py b/pantalaimon/panctl.py index 71c7a16..5fffe2a 100644 --- a/pantalaimon/panctl.py +++ b/pantalaimon/panctl.py @@ -404,7 +404,7 @@ class PanCtl: ) for device in devices: - key = partition_key(device["fingerprint_key"]) + key = partition_key(device["ed25519"]) color = get_color(device["device_id"]) print_formatted_text(HTML( f" - Device id: " diff --git a/pantalaimon/store.py b/pantalaimon/store.py index ee597dd..7f7d778 100644 --- a/pantalaimon/store.py +++ b/pantalaimon/store.py @@ -234,8 +234,8 @@ class PanStore: device_store[d.user_id][d.device_id] = { "user_id": d.user_id, "device_id": d.device_id, - "fingerprint_key": d.fp_key, - "sender_key": d.sender_key, + "ed25519": d.fp_key, + "curve25519": d.sender_key, "trust_state": trust_state.name } diff --git a/pantalaimon/ui.py b/pantalaimon/ui.py index c0f1428..fe57e9d 100644 --- a/pantalaimon/ui.py +++ b/pantalaimon/ui.py @@ -132,8 +132,8 @@ class Devices(dbus.service.Object): device_store[user_id][device.id] = { "user_id": device.user_id, "device_id": device.id, - "fingerprint_key": device.ed25519, - "sender_key": device.curve25519, + "e225519": device.ed25519, + "curve25519": device.curve25519, "trust_state": TrustState.unset.name, }