Conversation
|
The catch here is that the invoice is not persisted and would need to be recreated after startup though IIUC. |
|
Correct |
| * @param secret A random private key for creating the blinded path of the offer. Must be unique to this offer. | ||
| * The offer returned is deterministic, if you need to persist you just need to save the parameters used to create it. | ||
| */ | ||
| fun createOffer(secret: PrivateKey, amount: MilliSatoshi?, description: String?): OfferTypes.Offer { |
This comment was marked as resolved.
This comment was marked as resolved.
Sorry, something went wrong.
There was a problem hiding this comment.
I just noted that this is done inside OfferTypes :)
vincenzopalazzo
left a comment
There was a problem hiding this comment.
LGTM, but I left some comments for improving my understanding.
I am building on top of this PR to allow phoenixd to create offers with descriptions.
Following the comments inside the PR storing inside the db the secret: PrivateKey, amount: MilliSatoshi?, description: String? should be enough to recreate the offers right?
Allow creating more offers with customizable amount and description.
|
I need this for a feature I'm working on in Phoenix (PR #665) Here's the use case:
So |
9627000 to
6e29e6c
Compare
|
Hi @robbiehanson I wrote a PR that should be doing this exactly and also working on persistence in #743 Let me know if I need to do something on it that it is not right with the work hat you are doing |
|
Superseded by #774 |
Allow creating more offers with customizable amount and description.