From e3ab0ea961e9bf9a956f1bfe61146abbea8588d0 Mon Sep 17 00:00:00 2001 From: callebtc <93376500+callebtc@users.noreply.github.com> Date: Mon, 10 Oct 2022 22:10:59 +0200 Subject: [PATCH] keyset versions --- cashu/mint/ledger.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cashu/mint/ledger.py b/cashu/mint/ledger.py index a17cff6..87326a2 100644 --- a/cashu/mint/ledger.py +++ b/cashu/mint/ledger.py @@ -117,7 +117,8 @@ class Ledger: C = PublicKey(bytes.fromhex(proof.C), raw=True) # backwards compatibility with old hash_to_curve - # old clients do not send a version + # 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