This commit is contained in:
callebtc
2022-10-10 22:16:20 +02:00
parent e3ab0ea961
commit 777e419388
2 changed files with 5 additions and 1 deletions

View File

@@ -123,6 +123,9 @@ class Ledger:
not context.get("client-version")
or not self.keysets.keysets[proof.id].version
):
logger.debug(
f"Using legacy hash_to_curve for proof from keyset {proof.id} or client with version {context.get('client-version')}"
)
return legacy.verify_pre_0_3_3(secret_key, C, proof.secret)
return b_dhke.verify(secret_key, C, proof.secret)

View File

@@ -12,7 +12,7 @@ environs==9.5.0 ; python_version >= "3.7" and python_version < "4.0"
fastapi==0.83.0 ; python_version >= "3.7" and python_version < "4.0"
h11==0.14.0 ; python_version >= "3.7" and python_version < "4.0"
idna==3.4 ; python_version >= "3.7" and python_version < "4.0"
importlib-metadata==4.12.0 ; python_version >= "3.7" and python_version < "3.8"
importlib-metadata==5.0.0 ; python_version >= "3.7" and python_version < "3.8"
iniconfig==1.1.1 ; python_version >= "3.7" and python_version < "4.0"
loguru==0.6.0 ; python_version >= "3.7" and python_version < "4.0"
marshmallow==3.18.0 ; python_version >= "3.7" and python_version < "4.0"
@@ -34,6 +34,7 @@ six==1.16.0 ; python_version >= "3.7" and python_version < "4.0"
sniffio==1.3.0 ; python_version >= "3.7" and python_version < "4.0"
sqlalchemy-aio==0.17.0 ; python_version >= "3.7" and python_version < "4.0"
sqlalchemy==1.3.24 ; python_version >= "3.7" and python_version < "4.0"
starlette-context==0.3.4 ; python_version >= "3.7" and python_version < "4.0"
starlette==0.19.1 ; python_version >= "3.7" and python_version < "4.0"
tomli==2.0.1 ; python_version >= "3.7" and python_version < "4.0"
typing-extensions==4.3.0 ; python_version >= "3.7" and python_version < "4.0"