Adopting Bitcoin '23 repository for the workshop session about NodeGuard
DISCLAIMER: This readme has been run and tested on macOS, it shall be equivalent in Linux
- Docker & Docker Compose
- Polar Lightning
- NodeGuard companion
Follow the steps below to setup the environment for the workshop session.
git clone https://github.com/Elenpay/workshop-nodeguard
- Open polar lightning
- Import Network-> Select devnetwork.zip
- Start the network and enable auto mining
- Unzip devnetwork.zip to regtest.polar
unzip devnetwork.zip -d regtest.polar
- Unzip loopd.zip to .loop
unzip loopd.zip
- Bring up the docker-compose in the following order, wait a couple of seconds
docker-compose up nbxplorer -d
- Bring everything up except liquidator
docker compose up nodeguard loopserver nodeguard_postgres loopserver -d
- Create an api key for liquidator in NG API -> New
- Paste the api key in the docker.compose.yaml, replace
NODEGUARD_API_KEY
env var of liquidator - Start the remaining components
docker-compose up -d
- Add carol and alice nodes, take the info from polar. Make sure to point to
host.docker.internal:grpcport
of each node as endpoints, also the macaroon must be inhex
- Create a new finance manager user and set the keys, use NodeGuard companion to ease this process.
- Create a multisig wallet with the new created key and fund it with polar
- Open a channel and sign it using nodeguard companion
- Set up liquidity rules for the new channel