store: Change the name of the device key fields in the dict.

This commit is contained in:
Damir Jelić 2019-05-10 12:09:10 +02:00
parent 671fe9dbd0
commit c60e554fc2
3 changed files with 5 additions and 5 deletions

View File

@ -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: "

View File

@ -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
}

View File

@ -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,
}