diff --git a/cashu/mint/ledger.py b/cashu/mint/ledger.py index 87326a2..ed96231 100644 --- a/cashu/mint/ledger.py +++ b/cashu/mint/ledger.py @@ -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) diff --git a/requirements.txt b/requirements.txt index 8fc17f6..0065b77 100644 --- a/requirements.txt +++ b/requirements.txt @@ -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"