From 21622d0adb03a9b73d1fcf2bcb7999afcf2bac40 Mon Sep 17 00:00:00 2001 From: callebtc <93376500+callebtc@users.noreply.github.com> Date: Sat, 1 Oct 2022 03:26:44 +0200 Subject: [PATCH] remove length check --- cashu/mint/ledger.py | 2 -- cashu/wallet/wallet.py | 1 - 2 files changed, 3 deletions(-) diff --git a/cashu/mint/ledger.py b/cashu/mint/ledger.py index 5e3a3b2..fffee09 100644 --- a/cashu/mint/ledger.py +++ b/cashu/mint/ledger.py @@ -76,8 +76,6 @@ class Ledger: def _verify_secret_criteria(self, proof: Proof): if proof.secret is None or proof.secret == "": raise Exception("no secret in proof.") - if len(proof.secret) < 10: - raise Exception("secret too short, must be at least 10 characters.") return True def _verify_proof(self, proof: Proof): diff --git a/cashu/wallet/wallet.py b/cashu/wallet/wallet.py index 21eb275..2602ebd 100644 --- a/cashu/wallet/wallet.py +++ b/cashu/wallet/wallet.py @@ -167,7 +167,6 @@ class LedgerAPI: ), "number of secrets does not match number of outputs" await self._check_used_secrets(secrets) payloads, rs = self._construct_outputs(amounts, secrets) - split_payload = SplitPayload(proofs=proofs, amount=amount, output_data=payloads) resp = requests.post( self.url + "/split",