Giter VIP home page Giter VIP logo

workshop-nodeguard's Introduction

Workshop

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

Requisites

Setup

Follow the steps below to setup the environment for the workshop session.

1. Clone the repository

git clone https://github.com/Elenpay/workshop-nodeguard

2. Run the regtest network

  1. Open polar lightning
  2. Import Network-> Select devnetwork.zip
  3. Start the network and enable auto mining
  4. Unzip devnetwork.zip to regtest.polar
    unzip devnetwork.zip -d regtest.polar
    
  5. Unzip loopd.zip to .loop
    unzip loopd.zip
    
  6. Bring up the docker-compose in the following order, wait a couple of seconds
docker-compose up nbxplorer -d
  1. Bring everything up except liquidator
docker compose up nodeguard loopserver nodeguard_postgres loopserver -d
  1. Create an api key for liquidator in NG API -> New
  2. Paste the api key in the docker.compose.yaml, replace NODEGUARD_API_KEY env var of liquidator
  3. Start the remaining components
docker-compose up -d
  1. 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 in hex
  2. Create a new finance manager user and set the keys, use NodeGuard companion to ease this process.
  3. Create a multisig wallet with the new created key and fund it with polar
  4. Open a channel and sign it using nodeguard companion
  5. Set up liquidity rules for the new channel

workshop-nodeguard's People

Contributors

jossec101 avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.