Open BrannonKing opened 6 years ago
Suppose we started with an onchain solution like #6 - would there be a graceful evolution to this approach should the onchain approach face scaling challenges?
Once our upstream merge is done, the blockchain support for LN is there. The work for this solution would be integrating a LN library at the wallet-level, and securely backing up the receipts. (There may be overlapping work if we need to back up wallet data anyway via #11 .) One the other hand, #6 is a lot of work that would sit idly by if we ever switched to the LN.
If we modify our codebase to simplify the rollback code, that would help make an implementation of #6 easier. We could use Roy's roll-forward-only approach (but store all historical changes in the DB). That way you only have to parse/handle the messages going forward, which is quite a bit easier.
Assumption: you've read the other Proof of Purchase proposals. Second assumption: you can and have read some introductions to the Lightning Network (LN) online. Disclaimer: I don't think this is necessarily the right approach, but I'm the kind of person that has to see all the options before I can make a decision.
The lightning network transmits an invoice from the seller to the buyer (through some means outside the LN); they buyer then submits the money & confirmation of the invoice back to the seller. The invoice contains a particular field for describing the item (see https://github.com/lightningnetwork/lightning-rfc/blob/master/11-payment-encoding.md#data-part).
The proposal:
Pros:
Cons: