Update docs/liquid/liquid-part3.md

This commit is contained in:
b0xxer 2024-02-02 15:14:36 -06:00
parent 67c395d2a8
commit daeee7348b

View File

@ -28,7 +28,7 @@ In this case, let's suppose our Customer has earned 1 SND token (which for our p
We could build some type of webservice that had SQL databases and nodejs files that accept Asset A and then issued Asset B once received...however as we said our StackerNews crew is smart and therefore prefers to do *less hardwork*. Moreover all of the above lends itself to risk of fraud and counterparty default. We could build some type of webservice that had SQL databases and nodejs files that accept Asset A and then issued Asset B once received...however as we said our StackerNews crew is smart and therefore prefers to do *less hardwork*. Moreover all of the above lends itself to risk of fraud and counterparty default.
Luckily, due to the additional OPCODEs in Liquid, Atomic Swaps are supported[^2]. In fact, Blockstream has a tool to simplify using it. Luckily, due to the additional OPCODEs in Liquid, Atomic Swaps are supported[^2]. In fact, [Blockstream has a tool](https://github.com/Blockstream/liquid-swap) to simplify using it[^3].
Obviously to do a swap, we will need another wallet, as you can't swap between the same wallet (you can use the *same node* but use *different wallets*. You can refer to individual wallets in the swap-tool URL connect string by using the `http://user:password@localhost:7041/wallet/walletname` path). In my case, I have 2 nodes each running their own `elementsd` server (Umbrel and my desktop). So I will use those, but point is this can be done one a single node by setting up mutliple wallets and using distinct URL connect strings. Obviously to do a swap, we will need another wallet, as you can't swap between the same wallet (you can use the *same node* but use *different wallets*. You can refer to individual wallets in the swap-tool URL connect string by using the `http://user:password@localhost:7041/wallet/walletname` path). In my case, I have 2 nodes each running their own `elementsd` server (Umbrel and my desktop). So I will use those, but point is this can be done one a single node by setting up mutliple wallets and using distinct URL connect strings.
@ -139,3 +139,4 @@ Yes, probably one of the best ways to do that is to use it as a *staging area* f
[^1]: BlockStream Green, AQUA, Anser (web wallet), Specter, Marina (web wallet) [^1]: BlockStream Green, AQUA, Anser (web wallet), Specter, Marina (web wallet)
[^2]: Atomic Swaps allow parties to exchange different tokens directly without the need for a 3rd party, eliminating most of the risk of fraud and counterparty default.In fact, Blockstream has a tool to simplify using it. [^2]: Atomic Swaps allow parties to exchange different tokens directly without the need for a 3rd party, eliminating most of the risk of fraud and counterparty default.In fact, Blockstream has a tool to simplify using it.
[^3]: Please `git clone` the repo and don't rely on the pre-compiled downloads in repo (they are out of date from source)