Coder Social home page Coder Social logo

iammultiman / escrow-crypto-openbanking Goto Github PK

View Code? Open in Web Editor NEW

This project forked from stxphxn/rails-monorepo

0.0 0.0 0.0 2.89 MB

A proof-of-concept solution for swapping between fiat and cryptocurrency in a peer-to-peer manner using Open Banking and an escrow smart contract.

Shell 0.19% JavaScript 1.10% TypeScript 69.71% Solidity 29.01%

escrow-crypto-openbanking's Introduction

Rails: P2P Crypto to Fiat Swaps

What is Rails?

Rails is a peer-to-peer solution for swapping between fiat money and cryptocurrencies. By using an open banking API and an escrow smart contract, the buyer of a cryptocurrency in a trade no longer needs to trust that the funds will be released by the seller after a payment. It allows users to onboard directly in to decentralised finance (DeFi) protocols without the need of a centrailised exchange.

How does it work?

  1. Alice wants to sell 100 USDC for £70. a cryptocurrency pegged to the US Dollar.
  2. Bob wants to buy 100 USDC and is willing to pay £70 for it.
  3. Alice sends her 100 USDC to an escrow smart contract which locks the funds until the trade is complete.
  4. Bob authorises an Open Banking API to make a payment of £70 to Alice's bank
  5. Alice authorises an Open Banking API to access their bank account transaction information.
  6. The Open Banking API verifies that Bob's payment has reached Alice's account and send a cryptographic signature to Bob.
  7. Bob sends a transaction to the escrow smart contract that includes this signature which releases the 100 USDC to Bob's cryptocurrency wallet.

Technologies Used

  • Open Banking API - Yapily
  • App API - Cloudflare Workers
  • Escrow Contract - Solidity on Ethereum Testnet

escrow-crypto-openbanking's People

Contributors

stxphxn avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.