mirror of
https://github.com/aljazceru/nutshell.git
synced 2025-12-22 11:24:19 +01:00
check if keyset exists
This commit is contained in:
@@ -119,9 +119,9 @@ class Ledger:
|
||||
# backwards compatibility with old hash_to_curve
|
||||
# old clients do not send a version or
|
||||
# new clients will send tokens which have a keyset id without a version
|
||||
if (
|
||||
not context.get("client-version")
|
||||
or not self.keysets.keysets[proof.id].version
|
||||
if not context.get("client-version") or (
|
||||
self.keysets.keysets.get(proof.id)
|
||||
and not self.keysets.keysets[proof.id].version
|
||||
):
|
||||
return legacy.verify_pre_0_3_3(secret_key, C, proof.secret)
|
||||
try:
|
||||
|
||||
Reference in New Issue
Block a user