by vertex-four · 8y ago · 0 comments
Except that it needs more thinking about than that, because of questions like "what data source does everything use to agree that 1 month has passed since the last transaction", or "can I revoke a direct debit within a certain time period after the money's left my wallet" combined with "how do I get notified when money leaves my wallet".
There's also the question of whether the ability to just register a monthly standing order with various common clients would be good enough, rather than needing to pull money.
A lot of this is a UX exercise rather than a technical one, to be honest.
There's no way to revoke a transaction but you could implement a hold so ETH could only be withdrawn from the contract x days after the charge is incurred, within such time the owner could cancel the withdrawal.
As far as notifications are concerned, there are events in Ethereum that you can subscribe to. So for example you could subscribe to a charge event, and go in and dispute it.
Not disagreeing, just wanted to point out that one needs to be careful with timestamps in Ethereum, as the source of truth is miner. Using timestamps could result in security vulnerabilities.
However, on the scale of a month, the miners aren't going to be able to mess with you. A block stamped with a significantly incorrect timestamp won't be accepted by other miners.
On the flip side, I'm sure there are/will be oracles for approx. block time, so this is still a solveable issue.
It needs, at a minimum, easy-to-use privacy preserving transactions. Without that, it's a personal-information-leaking nightmare.
That could easily just be the blockchain itself, by specifying the time in terms of number of blocks.
> "can I revoke a direct debit within a certain time period after the money's left my wallet"
That can be done by having the money first be sent to an escrow where sender could retrieve money with a special key.
Notifications are easy: Email.