mirror of
https://github.com/lnbits/lnbits.git
synced 2025-09-25 11:14:02 +02:00
encode key as byte
This commit is contained in:
@@ -109,7 +109,7 @@ async def handle_lnurl_firstrequest(
|
||||
payload += "="*(4-(len(payload)%4))
|
||||
|
||||
data = base64.urlsafe_b64decode(payload)
|
||||
pin, amount_in_cent = xor_decrypt(pos.key, data)
|
||||
pin, amount_in_cent = xor_decrypt(pos.key.encode(), data)
|
||||
|
||||
price_msat = (
|
||||
await fiat_amount_as_satoshis(float(amount_in_cent) / 100, pos.currency)
|
||||
|
Reference in New Issue
Block a user