Hi,
I was reading the explanation of the HODL invoice (https://guide.bolt.fun/guide/invoices/hodl-invoice), where it says:
"With a hodl invoice there is also an additonal option where the recipient does not have to be the same person creating the payment hash for a given invoice they will generate (as is usually the case). They can also receive a payment hash from another party to create an invoice again where that other party would be the one that will hold the secret (preimage) for the hash until some condition is met and the secret is revealed which allows the invoice to be successfully settled."
I was thinking of an application that will create that pre image and that will settle a business transaction between two parties.
Example:
- A wants to hire B for a parcel service. 2, B asks for $X in sats.
- A agrees the price.
- B requests the application to generate a payment hash. The application gives the payment hash to B. The application stores in a safe place the preimage and does not reveal it to anyone yet.
- B creates an invoice for $X using that payment hash, and sends it to A.
- A pays that invoice and the payment remains frozen until B reveals the preimage to A.
- When the parcel service is made, A confirms the application that the service is completed.
- The application reveals the pre image to everyone.
- The payment is confirmed.
question 1: Is this possible to do this with any current lightning implementation (CLN, LND, Eclair)?
question 2 : Does it require custom made or specific lightning wallets or it can work for people using like say Wallet of Satoshi?
question 3: Is there a service today that acts as the described application?
I think this application can work ok since it will have no custody of funds at anytime. Also I explicitly avoided involving any third party decide disputes. The application will only hold profiles and reputations, no money, no personal info.
If my model is failing on something, please let me know, I am only a noob.
Thanks!!
Footnotes