Skip to content

Kixunil/lnch-vekslak

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

LN channel vekslak

Allows you to open possibly pre-funded channels on the street.

BIG FAT WARNING #0

You MUST review the code! By running the code WITHOUT reviewing it YOU AGREE to pay PENALTY of 150000 satoshis to the author of this code. Do NOT use if you don't want to pay nor review the code!

About

This is a (too) simple, little server allowing you to open a channel with anyone using Bitcoin Lightning Wallet on the street. Just open the admin interface, enter the amounts and let the other party scan the QR code.

This way, you can easily sell pre-opened channels. Once zero-conf spending push amount is allowed, this will allow your customers to pay with opened channels immediately.

BIG FAT WARNIG #1

This code purposefully doesn't implement encryption! Use only with properly configured nginx! Do NOT use on multi-user system!!!

How to use

  • Review the code or decide to pay me a penalty
  • Install nginx
  • Configure nginx to forward to port 8050
  • Create a configuration file:
    # Mandatory, supported backends: lncli, eclair
    backend = "lncli"
    # Your domain, mandatory, must be https or .onion
    domain = "https://example.com"
    # Mandatory authentication token.
    auth_key = "supersecretrandomtoken"
    # optional, this is the default
    www_root = "./static"
    # Path to prepend each GET with (e.g. /vekslak), defaults to /. You need rewrite in if you want to use it.
    root_path = "/"
    # optional bind port
    web_port = 8050
  • Run ./server.py --conf config_file
  • Open browser at https://yourdomain.com/yourprefix/admin/#yourauthkey
  • Go out, sell channels.
  • Refill your bitcoins
  • Repeat selling

About

Allows you to open possibly pre-funded LN channels on the street.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published