Closed ryanxcharles closed 8 years ago
This is not necessary with the current architecture. A payment is just a transaction in the bitcoin network. You can query the blockchain to see payments. No need at this point to also send transactions over the Datt p2p network.
There will be various "actions" a user can perform on a piece of content, such as paying the content or flagging it as inappropriate. We don't need to support flagging for MVP, we need to support payments. Note that because payments are on the blockchain, we don't really need the payment itself to be listed here, but we somehow need to communicate which person made the payment. An easy way to do this is to just record the payment in the database along with a signed message from the person who paid. We could also consider putting usernames in OP_RETURN, however long-term we won't be using normal bitcoin transactions at all, but rather transactions on a payment network. So having an action type for "payment" seems like the simplest thing to do for now that is also forwards-compatible.