{"action":"closed","issue":{"url":"https://api.github.com/repos/ro31337/libretaxi/issues/458","repository_url":"https://api.github.com/repos/ro31337/libretaxi","labels_url":"https://api.github.com/repos/ro31337/libretaxi/issues/458/labels{/name}","comments_url":"https://api.github.com/repos/ro31337/libretaxi/issues/458/comments","events_url":"https://api.github.com/repos/ro31337/libretaxi/issues/458/events","html_url":"https://github.com/ro31337/libretaxi/issues/458","id":204729703,"number":458,"title":"Escrowed payment to protect Driver and Rider","user":{"login":"rocketinventor","id":6473114,"avatar_url":"https://avatars1.githubusercontent.com/u/6473114?v=4","gravatar_id":"","url":"https://api.github.com/users/rocketinventor","html_url":"https://github.com/rocketinventor","followers_url":"https://api.github.com/users/rocketinventor/followers","following_url":"https://api.github.com/users/rocketinventor/following{/other_user}","gists_url":"https://api.github.com/users/rocketinventor/gists{/gist_id}","starred_url":"https://api.github.com/users/rocketinventor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rocketinventor/subscriptions","organizations_url":"https://api.github.com/users/rocketinventor/orgs","repos_url":"https://api.github.com/users/rocketinventor/repos","events_url":"https://api.github.com/users/rocketinventor/events{/privacy}","received_events_url":"https://api.github.com/users/rocketinventor/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":11,"created_at":"2017-02-01T22:49:15Z","updated_at":"2018-05-18T04:47:00Z","closed_at":"2018-05-18T04:47:00Z","author_association":"NONE","body":"No one wants to pay for a ride and not actually get it. Drivers don't want to drive and not get paid. To remedy this, escrows can be used.  I came up with **a possible method for escrowed up-front payments using blockchain-based payment**.\r\n\r\n- Before the ride is paid for, an \"escrow\" wallet is randomly generated. The public key is given to the Rider and also publicly recorded. The private key is stored privately with a trusted independent third party (i.e. the server). The Rider is encouraged to pay the estimated cost at some point before the driver takes them to their destination.\r\n  - The Rider pays and no longer has access to the funds.\r\n  - The driver _also_ has no ability to access the funds.\r\n  - If costs go over the estimate, the Rider can transfer more funds.\r\n- After both the driver **and** the rider come to an agreement for the total cost the third party, can do one of the following:\r\n  - Hand over the private key for the wallet to whomever the funds belong\r\n  - Transfer all (or partial) funds to appropriate wallets according to what the Driver and Rider agree to.\r\n- If the Rider claims that they didn't get the promised services (i.e. Driver doesn't show up) and the Rider can't produce _any_ evidence (i.e. GPS logs) to dispute the Rider's claim then the Rider gets refunded.\r\n- In a worse case scenario (with conflicting or incomplete evidence and/or claims), no agreement is come to and the funds can be donated to a charitable cause or to cover project costs"}}
{"actor":{"display_login":"ro31337"}}