From 41971f1e08c9d9f5a2c9b4fad35d508b58baa8a9 Mon Sep 17 00:00:00 2001 From: Leonhard Weese <2104935+Liongrass@users.noreply.github.com> Date: Sat, 3 Feb 2024 04:16:44 +0800 Subject: [PATCH] Update crud.py (#9) The short url is available for each lnurlw, and with six digits probably far from "safe". I propose to revert to the previous 22 digits. --- crud.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crud.py b/crud.py index 2793ba9..c28848b 100644 --- a/crud.py +++ b/crud.py @@ -12,7 +12,7 @@ from .models import CreateWithdrawData, HashCheck, WithdrawLink async def create_withdraw_link( data: CreateWithdrawData, wallet_id: str ) -> WithdrawLink: - link_id = urlsafe_short_hash()[:6] + link_id = urlsafe_short_hash()[:22] available_links = ",".join([str(i) for i in range(data.uses)]) await db.execute( """