https://github.com/farscapian/prism-hackathon
A BOLT12 Lightning Prism plugin that works in Polar Lightning.
https://github.com/farscapian/prism-hackathon
Last synced: 3 months ago
JSON representation
A BOLT12 Lightning Prism plugin that works in Polar Lightning.
- Host: GitHub
- URL: https://github.com/farscapian/prism-hackathon
- Owner: farscapian
- Created: 2023-04-30T05:46:52.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2023-04-30T21:38:37.000Z (about 2 years ago)
- Last Synced: 2025-02-08T23:24:37.624Z (4 months ago)
- Language: Shell
- Size: 15.6 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.MD
Awesome Lists containing this project
README
## ROYGBIV
This repo helps you run a BOLT12-based PRISM test environment running in docker.
## Instructions
This repo deploys a test environment for testing prisms. We create a network of 4 CLN nodes, Bob, Alice, Carol, and Dave. `up.sh` and `resume.sh` scripts configure all the nodes such that there exists a channel between Bob and Alice, a channel between Alice and Carol, and a channel between Alice and Dave. The objective is to run the prism plugin on Alice, which will expose a BOLT12 offer. Bob will pay Alice using the BOLT12 offer created as a result of the Prism plugin.
You first need to run `up.sh`. This file brings up the development environment according to the `docker-compose.yml` file. The script continues by using bitcoin-cli and lightning-cli to fund the nodes, advance the blockchain, send BTC to the various lightning nodes, add peer to peer connections, and open lightning channels.
Unfortunately, we had one issue where `up.sh` doesn't doesn't complete. Thus, you will need to copy the output and enter the final command manually. After it's completed, you can run `resume.sh` which completes the entire process.
## COnclusion
After the script completes successfully, you SHOULD be able to connect a web front-end to the ALice's core lightning websocket interface to issue RPC commands.
## down.sh
If you want to reset the entire thing, run down.sh. THis will take down your dev environment AND IT WILL DELETE any data from the previous attempt.