docs: move out architecture diagram

This commit is contained in:
Alex Bosworth 2019-03-13 16:11:04 -07:00
parent 7b769d57bb
commit 974da15ead
No known key found for this signature in database
GPG key ID: E80D2F3F311FD87E
2 changed files with 72 additions and 48 deletions

View file

@ -43,56 +43,13 @@ problems. Community support is also available in the
[LND Slack](https://join.slack.com/t/lightningcommunity/shared_invite/enQtMzQ0OTQyNjE5NjU1LWRiMGNmOTZiNzU0MTVmYzc1ZGFkZTUyNzUwOGJjMjYwNWRkNWQzZWE3MTkwZjdjZGE5ZGNiNGVkMzI2MDU4ZTE)
.
## Loop Out Swap (off -> on-chain)
## Setup and Install
```
loop out 500
|
|
v
.-----------------------------.
| Loop CLI |
| ./cmd/loop |
| |
| |
| .-------------------. | .--------------. .---------------.
| | Loop Client (lib) | | | LND node | | Bitcoin node |
| | ./ |<-------------| |-------------------| |
| | | | | | on-chain | |
| | |------------->| | htlc | |
| | | | off-chain | | | |
| '-------------------' | htlc '--------------' '---------------'
'-----------------|-----------' | ^
| | |
| v |
| .--. .--.
| _ -( )- _ _ -( )- _
| .--,( ),--. .--,( ),--.
initiate| _.-( )-._ _.-( )-._
swap | ( LIGHTNING NETWORK ) ( BITCOIN NETWORK )
| '-._( )_.-' '-._( )_.-'
| '__,( ),__' '__,( ),__'
| - ._(__)_. - - ._(__)_. -
| | ^
| | |
v v |
.--------------------. off-chain .--------------. .---------------.
| Loop Server | htlc | LND node | | Bitcoin node |
| |<-------------| | | |
| | | | on-chain | |
| | | | htlc | |
| |--------------| |----------------->| |
| | | | | |
'--------------------' '--------------' '---------------'
LND and the loop client are using Go modules. Make sure that the `GO111MODULE`
env variable is set to `on`.
```
## Setup
LND and the swaplet are using go modules. Make sure that the `GO111MODULE` env
variable is set to `on`.
In order to execute a swap, LND needs to be rebuilt with sub servers enabled.
In order to execute a swap, LND will need to be rebuilt with sub servers
enabled.
### LND