RGB-WG / rgb-node

RGB node - the official server-side implementation

Home Page:https://rgb.tech

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Proposal for proof-of-payment protocol

fedsten opened this issue · comments

Motivation
When you perform a payment, it is important to be able to prove to third parties that the payment was indeed finalized correctly. This is relevant for example in case of disputes between parties or when dealing with service providers such as centralised exchanges. With normal Bitcoin transactions, you always have the blockchain as a source of truth to testify that a specific transaction did indeed occur as agreed between the parties and was finalised. However, in RGB there is the consignment data which is transferred off-chain, with no on-chain record to prove that the consignment was truly delivered to the payee.

Proposal
To address the issue, an interactive protocol is needed, with the requirement for the payee to provide a signed receipt of received consignment before the payer proceeds to perform the Bitcoin transaction to close the single-use-seal. Specifically, the protocol should include the following steps:

  1. The payee sends an invoice to the payer.
  2. The payer sends the consignment data to the payee.
  3. The payee validates the consignment.
  4. The payee sends a signed receipt to the payer acknowledging that the correct consignment was received and validated.
  5. The payer closes the on-chain single-use-seal, and commits the consignment in the output of the Bitcoin transaction.
  6. The payee monitors the blockchain and as soon as the Bitcoin transaction receives a sufficient number of confirmations, the payment is considered finalised. In case the RGB assets are being moved on a Lightning Network payment channel, the payment will be considered finalised when the channel is updated.

Screenshot from 2022-03-23 13-48-14

Thank you! I think this will be nice to have as a standard. Can you please re-post the proposal into https://github.com/LNP-BP/LNPBPs/discussions/categories/standard-proposals?

Closing due to movement into LNP-BP/LNPBPs#122