Update docs/liquid/liquid-part3.md

This commit is contained in:
b0xxer 2024-02-06 05:49:20 -06:00
parent 3110e01c41
commit 0e97467771

View File

@ -126,10 +126,9 @@ A full demo of the security features would require their own DeepDive (hint hint
There are two separate topics to go over with Liquid and Lightning. First is *L-BTC Lightning* (that is LN as a 2nd layer to Liquid). Secondly, the more familiar, how to interact with BTC Lightning from Liquid.
The first topic is [covered well by this blog post](https://medium.com/blockstream/getting-started-with-lightning-on-the-liquid-network-8b5682752ffe), effectively you use c-lightning and configure it to use `liquid` as its chain. Then you can open channels from your Elements node and send LN invoices that hold L-BTC (and presumably other assets). While this is interesting, there is no pressing use for it at the moment since we can *already send real BTC* over LN.
The first topic is [covered well by this blog post](https://medium.com/blockstream/getting-started-with-lightning-on-the-liquid-network-8b5682752ffe), effectively you use c-lightning and configure it to use `liquid` as its chain. Then you can open channels from your Elements node and send LN invoices that hold L-BTC (and presumably other assets). While this is interesting, there is no pressing use for it at the moment since we can *already send real BTC* over LN. However, it does highlight the essential "bitcoin nature" of Liquid -- L2's that work with Bitcoin also work with Liquid.
## Using Liquid with BTC / LN
What if you have no desire to create tokens, securities, etc...can you still make use of Liquid?
**Yes, probably one of the best ways to do that is to use it as a *staging area* for opening Lightning channels**. (In fact, both Blockstream Green and the newly announced AQUA both do that under-the-hood[^5]).
@ -168,8 +167,13 @@ There are a few different solutions for peg-out, but sadly all require a 3rd par
* sideswap.io (defi)
* Use a wallet that integrates to one of the above (AQUA)
For my case, I will use sideswap.io since its non-kyc and doesn't require any account.
For my case, I will use sideswap.io as a demo.
```
$ sudo ~/scripts/app compose elements exec node elements-cli -rpcuser=$E_RPCUSER -rpcpassword=$E_RPCPASS -named sendtoaddress address="VJLGBLED..." amount=0.0011 fee_rate=0.1 assetlabel="bitcoin"
1bf3623924328b22e7b2ae1d7a9fd8bc2879d4cacabd9ba7e2fe0299fe26301e
```
# Final Discussion and Ideas