--- Log opened Tue Jan 14 00:00:06 2020 00:47 -!- jonatack [~jon@2a01:e0a:53c:a200:bb54:3be5:c3d0:9ce5] has quit [Ping timeout: 252 seconds] 01:02 -!- Kostenko [~Kostenko@2001:8a0:728a:ca00:c06f:c0d:abd:b5af] has quit [Ping timeout: 248 seconds] 01:25 -!- jonatack [~jon@213.152.161.249] has joined #c-lightning 01:41 -!- vasild [~vd@gateway/tor-sasl/vasild] has quit [Ping timeout: 240 seconds] 01:42 -!- vasild [~vd@gateway/tor-sasl/vasild] has joined #c-lightning 03:04 -!- jonatack [~jon@213.152.161.249] has quit [Ping timeout: 240 seconds] 03:07 -!- jonatack [~jon@213.152.161.69] has joined #c-lightning 04:11 -!- blockstream_bot [blockstrea@gateway/shell/sameroom/x-zkjjaoqsjfattawp] has left #c-lightning [] 04:11 -!- blockstream_bot [blockstrea@gateway/shell/sameroom/x-zkjjaoqsjfattawp] has joined #c-lightning 04:27 -!- belcher [~belcher@unaffiliated/belcher] has joined #c-lightning 05:51 -!- k3tan172 [k3tan@gateway/vpn/protonvpn/k3tan] has joined #c-lightning 05:54 -!- k3tan [k3tan@gateway/vpn/protonvpn/k3tan] has quit [Ping timeout: 260 seconds] 05:59 -!- StopAndDecrypt_ [~StopAndDe@193.235.146.104] has quit [Ping timeout: 268 seconds] 06:51 -!- jonatack [~jon@213.152.161.69] has quit [Ping timeout: 260 seconds] 07:09 -!- mdunnio [~mdunnio@38.126.31.226] has joined #c-lightning 08:26 -!- k3tan172 is now known as k3tan 08:35 -!- jonatack [~jon@2a01:e0a:53c:a200:bb54:3be5:c3d0:9ce5] has joined #c-lightning 09:00 -!- kexkey [~kexkey@37.120.205.233] has joined #c-lightning 09:31 -!- DeanWeen [~dean@gateway/tor-sasl/deanguss] has joined #c-lightning 09:31 -!- Dean_Guss [~dean@gateway/tor-sasl/deanguss] has quit [Remote host closed the connection] 09:37 -!- afk11 [~afk11@gateway/tor-sasl/afk11] has quit [Ping timeout: 240 seconds] 09:40 -!- afk11 [~afk11@gateway/tor-sasl/afk11] has joined #c-lightning 10:41 -!- mdunnio [~mdunnio@38.126.31.226] has quit [Remote host closed the connection] 10:49 -!- fiatjaf1 [~fiatjaf@2804:7f2:2996:5492:ea40:f2ff:fe85:d2dc] has quit [Ping timeout: 260 seconds] 11:10 -!- Kostenko [~Kostenko@2001:8a0:728a:ca00:c06f:c0d:abd:b5af] has joined #c-lightning 11:14 -!- DeanWeen [~dean@gateway/tor-sasl/deanguss] has quit [Remote host closed the connection] 11:15 -!- mdunnio [~mdunnio@38.126.31.226] has joined #c-lightning 11:16 -!- mdunnio [~mdunnio@38.126.31.226] has quit [Read error: Connection reset by peer] 11:23 -!- _jo [8e5ddb27@142.93.219.39] has joined #c-lightning 11:38 -!- _jo [8e5ddb27@142.93.219.39] has quit [Ping timeout: 260 seconds] 11:47 -!- jodobear [526617d2@82.102.23.210] has joined #c-lightning 11:47 < jodobear> Hi all! 11:48 < jodobear> I am building a webapp where i need the users to deposit and be able to withdraw whatever balance they have. I don't have much experience with LN and this is what i have till now:I want to use BTCPay Server with c-lightning but, all the examples i have seen till now only implement users paying to the service but, none with a withdrawal system. On 11:48 < jodobear> the BTCPay chat i was told c-lightning can do that.Can anyone help how can i implement the following using c-lightning:1. User Deposits funds into the app.2. User Withdraws balance from the app.3. Ability to authenticate user using LNURL.Another question: How can i use LNURL with c-lightning, do i even need it since c-lightning has it's own API. 11:48 < jodobear> Though LNURL has much more extensive usecases. 11:51 < jodobear> sorry about that un-formatted message 11:52 < jodobear> I am building a webapp where i need the users to deposit and be able to withdraw whatever balance they have. I don't have much experience with LN and this is what i have till now: 11:52 < jodobear> I want to use BTCPay Server with c-lightning but, all the examples i have seen till now only implement users paying to the service but, none with a withdrawal system. On the BTCPay chat i was told c-lightning can do that. 11:52 < jodobear> Can anyone help how can i implement the following using c-lightning: 11:52 < jodobear> 1. User Deposits funds into the app. 11:52 < jodobear> 2. User Withdraws balance from the app. 11:52 < jodobear> 3. Ability to authenticate user using LNURL. 11:52 < jodobear> Another question: How can i use LNURL with c-lightning, do i even need it since c-lightning has it's own API. Though LNURL has much more extensive usecases. 12:18 < darosior> Hi jodobear 12:18 < darosior> "1. User Deposits funds into the app.2. User Withdraws balance from the app" => Your app is at a higher level than C-lightning, but you can withdraw onchain funds from `lightningd` using the `withdraw` command. You can also manage transactions (and implement withdrawal with `tx*` RPCs here is for example `txprepare` 12:18 < darosior> https://lightning.readthedocs.io/lightning-txprepare.7.html 12:18 <@niftynei> hey jodobear. great questions. i don't know a lot about LNURL, but you should check out fiatjaf's resources page https://github.com/fiatjaf/awesome-lnurl 12:18 <@niftynei> lol. hey darosior :P 12:19 < darosior> :) 12:19 <@niftynei> regarding 'withdrawals', it might be good to know if you mean "withdraw via a lightning invoice, over a lightning channel" or "withdraw to a bitcoin address, over the bitcoin blockchain" 12:20 < jodobear> Thanks for responding!) 12:20 <@niftynei> the `withdraw` command that darosior pointed out is for the second one (withdraw to a bitcoin address) 12:20 < jodobear> yes, about withdraw, everything happens off chain.No onchain tx on the app 12:20 < vasild> "1. User Deposits funds into the app" - I would say "generate an invoice from the app and ask the user to pay it", but maybe you do not mean that user does a ln payment? What do you mean by "funds" onchain BTC, other crypto, fiat? 12:21 <@niftynei> ah. ok. right. so i think the general idea for a withdrawal would be to have the user supply you with an invoice to pay 12:21 < jodobear> what darosior mentioned wouldn't work 12:21 < jodobear> niftynei yes 12:21 < jodobear> for deposit of funds, that also is off chain over ln 12:22 <@niftynei> right, as vasild mentioned, the most 'lightning' way to deposit funds would be for your app to provide the user with an invoice to pay, for the amount of funds they wanted to deposit 12:23 <@niftynei> you'd need to know how much they wanted to deposit ahead of generating the invoice though, unless you had static deposit amounts (like, deposit 50k sats, deposit 500ksats, etc) 12:24 < jodobear> niftynei for deposit i found the example on the github, and will attempt that or check other `Lapps` mentioned there but, as for withdrawal, i am stuck 12:24 <@niftynei> kinda curious why the user need a balance tho 12:24 <@niftynei> hmm 12:25 <@niftynei> withdrawal would just be the user gives you an invoice, and you pay it 12:25 <@niftynei> i mean, you'd probably want to verify that the amount the invoice is for is correct 12:25 < jodobear> niftynei it's a game, and the balance thing is just a `UX` thing so that the user can keep track of their winnings and loss, can select how much they want to use that for the next round... 12:26 <@niftynei> yeah, that makes sense. 12:26 < jodobear> as for the verification, that i can do that comparing the `balance` value 12:27 < jodobear> can you help me understand how do i implement user giving me `invoice` and me processing it through BTCPay? 12:30 <@niftynei> might be better taking this to DM 12:34 -!- blockstream_bot [blockstrea@gateway/shell/sameroom/x-zkjjaoqsjfattawp] has left #c-lightning [] 12:35 -!- blockstream_bot [blockstrea@gateway/shell/sameroom/x-zkjjaoqsjfattawp] has joined #c-lightning 13:03 -!- jodobear [526617d2@82.102.23.210] has quit [Ping timeout: 260 seconds] 13:09 -!- jodobear [526617d2@82.102.23.210] has joined #c-lightning 13:34 -!- jodobear [526617d2@82.102.23.210] has quit [Remote host closed the connection] 13:37 -!- vasild_ [~vd@gateway/tor-sasl/vasild] has joined #c-lightning 13:39 -!- cubancorona [~cubancoro@pool-72-77-31-161.pitbpa.ftas.verizon.net] has joined #c-lightning 13:40 -!- vasild [~vd@gateway/tor-sasl/vasild] has quit [Ping timeout: 240 seconds] 16:01 -!- DeanGuss [~dean@gateway/tor-sasl/deanguss] has joined #c-lightning 16:22 -!- cubancorona [~cubancoro@pool-72-77-31-161.pitbpa.ftas.verizon.net] has quit [Quit: Leaving] 16:50 -!- raucao [~raucao@skippe2.nine.ch] has quit [Quit: kthxbai] 17:13 -!- belcher [~belcher@unaffiliated/belcher] has quit [Quit: Leaving] 19:26 -!- DeanGuss [~dean@gateway/tor-sasl/deanguss] has quit [Remote host closed the connection] 19:26 -!- DeanGuss [~dean@gateway/tor-sasl/deanguss] has joined #c-lightning 20:52 -!- blockstream_bot [blockstrea@gateway/shell/sameroom/x-zkjjaoqsjfattawp] has left #c-lightning [] 20:52 -!- blockstream_bot [blockstrea@gateway/shell/sameroom/x-zkjjaoqsjfattawp] has joined #c-lightning 21:03 -!- ghost43_ is now known as ghost43 22:30 -!- vasild_ is now known as vasild 23:24 -!- jonatack [~jon@2a01:e0a:53c:a200:bb54:3be5:c3d0:9ce5] has quit [Ping timeout: 272 seconds] 23:29 -!- jonatack [~jon@2a01:e0a:53c:a200:bb54:3be5:c3d0:9ce5] has joined #c-lightning 23:43 -!- jonatack [~jon@2a01:e0a:53c:a200:bb54:3be5:c3d0:9ce5] has quit [Ping timeout: 260 seconds] --- Log closed Wed Jan 15 00:00:08 2020