Open marsrobertson opened 5 years ago
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.
gRPC: https://api.lightning.community/#addinvoice
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... ⚡️⚡️⚡️
Joule extension
macaroons
Related issue: https://github.com/lightning-power-users/node-launcher/issues/360
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 usingmacaroons
, I'll try to reverse engineer what they do... ⚡️⚡️⚡️Related issue: https://github.com/lightning-power-users/node-launcher/issues/360