From c72ea75911130359f29488c4c8e8ba5facd61b30 Mon Sep 17 00:00:00 2001 From: callebtc <93376500+callebtc@users.noreply.github.com> Date: Sat, 1 Oct 2022 04:00:52 +0200 Subject: [PATCH] 128 bit == 22 characters --- cashu/wallet/cli.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cashu/wallet/cli.py b/cashu/wallet/cli.py index a094aba..cabd3dc 100755 --- a/cashu/wallet/cli.py +++ b/cashu/wallet/cli.py @@ -106,6 +106,9 @@ async def balance(ctx): @click.pass_context @coro async def send(ctx, amount: int, secret: str): + if secret and len(secret) < 22: + print("Error: secret has to be at least 22 characters long.") + return wallet: Wallet = ctx.obj["WALLET"] wallet.load_mint() wallet.status()