lightning-power-users / node-launcher

Easiest Bitcoin Lightning desktop app, for Windows, macOS, and Linux
MIT License
357 stars 67 forks source link

Where to find the private key(s) associate with my node? #361

Open marsrobertson opened 5 years ago

marsrobertson commented 5 years ago

Explaining what I want to accomplish and why knowing private key is beneficial

BOLT 11 specification: https://github.com/lightningnetwork/lightning-rfc/blob/master/11-payment-encoding.md

Receiving “spontaneous” payments is not possible, an invoice has to be generated first:  https://github.com/lightningnetwork/lightning-rfc/issues/399

I’m trying to generate an invoice programmatically.

Option 1)

gRPC: https://api.lightning.community/#addinvoice

Option 2)

REST: https://api.lightning.community/rest/?javascript#v1-invoices

The difficulty with using these methods - which fields are optional, which are required? See my question here: https://lightningcommunity.slack.com/archives/C6BDA6DGE/p1559490676113100

I tried finding a library.

They all require a private key.

I tried searching for a private key.

I do not know where to find / how to derive my private key.

I'm using Joule extension that is using macaroons, I'll try to reverse engineer what they do... ⚡️⚡️⚡️

Related issue: https://github.com/lightning-power-users/node-launcher/issues/360