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
|
# backwards compatibility with old hash_to_curve
|
||||||
# old clients do not send a version or
|
# old clients do not send a version or
|
||||||
# new clients will send tokens which have a keyset id without a version
|
# new clients will send tokens which have a keyset id without a version
|
||||||
if (
|
if not context.get("client-version") or (
|
||||||
not context.get("client-version")
|
self.keysets.keysets.get(proof.id)
|
||||||
or not self.keysets.keysets[proof.id].version
|
and not self.keysets.keysets[proof.id].version
|
||||||
):
|
):
|
||||||
return legacy.verify_pre_0_3_3(secret_key, C, proof.secret)
|
return legacy.verify_pre_0_3_3(secret_key, C, proof.secret)
|
||||||
try:
|
try:
|
||||||
|
|||||||
Reference in New Issue
Block a user