markusklems / desema

Prototype of a blockchain-based decentralized service marketplace.
MIT License
5 stars 1 forks source link

Write payment contract #81

Closed nq42 closed 7 years ago

nq42 commented 7 years ago

subscription contract logic

nq42 commented 7 years ago

The subscription logic of the code we have now is below: s

Now the problems are: 1 Clients: more logic, auto generate and deploy 2 Security: clients change installation package 3 Monitor: p2p

And the question are: 1 contract deploys contract? 2 how could client knows the contract address? 3 contract No. = clients*2 + 1, too many?

nq42 commented 7 years ago

The original escow is: e2

So if we really want to have the subscription feature, It would be better to change the logic as below: escrow

Basically this logic is:

  1. one time pay, 1.1 no confirmation 1.2 seller confirm (notice buyer) 1.3 double confirm with escrow from buyer 1.4 deposit
  2. (Based on 1 one time pay above) Multiple pay, time based. find a way to warning the user to continue pay