Skip to content

p2pix @ "Rootstock: Bitcoin Scaling Hackathon" submissions

Notifications You must be signed in to change notification settings

poliveiram/bitcoin-scaling-hackathon

 
 

Repository files navigation

p2pix @ Rootstock: Bitcoin Scaling Hackathon

Personal copy for the repository of "Rootstock: Bitcoin Scaling Hackathon" submissions

home 🌐 https://github.com/doiim/p2pix

A trustless p2p solution for exchanging FIAT to ERC20 tokens.

menus

In short.

The roadmap ideally would be accomplished through improvements to the PIX API, the smart contract receives and releases its funds based on a transaction proof that is generated every time a PIX payment's transaction receipt is validated.

p2pix_explorer

For example, in case you want to sell 100 USDC for the price of 500 BRL, you create an order that locks it into the contract. once the user buying the USDC accepts the order it saves the buyer address into the contract and generates a transaction qrCode with the specified value (500 BRL) to the PIX key detailed on the smart contract. Then it allows the necessary transaction to be confirmed and finally sends the Id proof to the smart contract which in return releases the fund to the specified buyer address.

How it works?

p2pix arquitetura   pitch Bacen   24_out

Why this solution?

qrcode

LocalBitcoins used to be, and currently still is in certain places such as in Venezuela, one of the main crypto providers where a substantial amount of volume flows through the parallel economy and revitalizes gross output during downturns.

If there is a lack of crypto infrastructure in a country or it is constrained by government will, capital flow naturally is driven to informal p2p and OTC methods. These transactions are inherently less efficient as there is a lot of friction involved in exchanging cash in person, besides the risk involved in having the custody of physical assets there’s also a logistical overhead in operating the currencies which are been traded. Even if the activity is carried out online you still need a third party to escrow the transaction and be available to be called upon in the case of a dispute. So finality is inherently uncertain, especially time-wise.

gerenciar

This solution is built with the intention of being ported to other payments systems such as what is intended to be achieved with FEDnow, as well as with other legacy systems which have the minimum infrastructure necessary to generate the proofs on a receipt. Potentially if CBDC are open to being used by the general public it becomes another venue where settlement of swaps can be done in a trustless manner, where the only centralization point is the currency issuer itself, therefore an inherent risk that can not be mitigated

The protocol requires the token seller to accept some public key as being responsible for signing valid transactions. Ideally, central banks should be providing the payer with a signed message attesting to the successful fiat transfer. This may come true in Brazil with new PIX APIs or in the design of CBDCs.

mobile

Currently what’s achievable with the current central bank infrastructure is to use Cartesi Rollups to effortlessly read and validate a signed JSON message inside the dApp. This format, which is not normally suited for smart contracts, can be handled efficiently by the Cartesi Virtual Machine. Accepting such formats is useful as trusted fiat authorities (central banks, financial institutions) may not provide confirmations in a format naturally suited for smart contracts.

Whitepaper [PT-BR]

https://docs.google.com/document/d/104hX6RFC9miXHWcHdygoxlNpXL3ct4X9DoX63ECyc8U/edit?usp=sharing

MVP data

––––––––––––––––

Solidity smart contract: https://mumbai.polygonscan.com/address/0x08Cd9879D69693E5162B3A3eD24DdAb9118d0f0D

Cartesi smart contracts:

Figma files:

FAQ: https://docs.google.com/document/d/1dgjZ0aYuW_tIeOX26aV6ZR-OYniJl8txZy4SgeIKUu0/edit?usp=sharing

Sandbox: https://p2pix-staging.vercel.app/

Pitches:

[PT-BR]

[EN-US]

Rootstock: Bitcoin Scaling Hackathon (July/2023) https://docs.google.com/presentation/d/1ns-rXz0Vc_LltUZCZop_atN60TUjlBIt_W3KSSQcDDY/edit?usp=sharing

About

p2pix @ "Rootstock: Bitcoin Scaling Hackathon" submissions

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published