{"id":19961722,"url":"https://github.com/doiim/p2pix","last_synced_at":"2025-10-05T09:27:25.403Z","repository":{"id":60789871,"uuid":"534838956","full_name":"doiim/p2pix","owner":"doiim","description":null,"archived":false,"fork":false,"pushed_at":"2023-07-12T19:21:00.000Z","size":1976,"stargazers_count":9,"open_issues_count":0,"forks_count":4,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-01T16:47:50.292Z","etag":null,"topics":["cartesi","crypto","exchange","p2p","pix","polygon","swap"],"latest_commit_sha":null,"homepage":"https://p2pix.noho.st","language":"Vue","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/doiim.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-09-09T23:44:09.000Z","updated_at":"2024-11-06T14:53:13.000Z","dependencies_parsed_at":"2025-01-12T07:45:16.806Z","dependency_job_id":"0053216c-b44e-4c03-a665-63e33e5e8401","html_url":"https://github.com/doiim/p2pix","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/doiim/p2pix","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/doiim%2Fp2pix","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/doiim%2Fp2pix/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/doiim%2Fp2pix/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/doiim%2Fp2pix/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/doiim","download_url":"https://codeload.github.com/doiim/p2pix/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/doiim%2Fp2pix/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278437947,"owners_count":25986760,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-05T02:00:06.059Z","response_time":54,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cartesi","crypto","exchange","p2p","pix","polygon","swap"],"created_at":"2024-11-13T02:08:17.082Z","updated_at":"2025-10-05T09:27:25.351Z","avatar_url":"https://github.com/doiim.png","language":"Vue","funding_links":[],"categories":[],"sub_categories":[],"readme":"![home](https://user-images.githubusercontent.com/71399144/215202335-74dc2739-b312-43d3-a1a7-dfd835fb9f09.png)\n\n## A trustless p2p solution for exchanging FIAT to ERC20 tokens.\n\n![menus](https://user-images.githubusercontent.com/71399144/215202371-c3ebb710-6789-4d0b-8a46-4cdf54b2b4a0.png)\n\n### In short.\n\nThe 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.\n\n![p2pix_explorer](https://user-images.githubusercontent.com/71399144/202617017-3d04fa8e-f241-4a53-a2af-1b1b04a48424.png)\n\nFor 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 QR Code 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**.\n\n\n## How does it work?\n![p2pix arquitetura   pitch Bacen   24_out](https://user-images.githubusercontent.com/71399144/202616981-9f4293ce-bead-4d29-87a2-6cc315feab98.jpg)\n\nSell cryptocurrencies by placing them in an escrow via smart-contracts and define the amount in BRL that will be paid through Pix.\n\nPix is a “Brazilian instant payment juggernaut ” that we’re using to develop a disintermediation p2p alternative into swapping fiat money for cryptocurrencies.\nDeal crypto by locking it into a smart-contract and set a price in BRL that will be paid through Pix.\n\n\"Person to person via Pix\"\nThe name should be self-defining: p2pix.\nCounterpart-risk-free peer network solution, really without intermediaries, that enables you to exchange fiat money for cryptocurrency.\nSell Brazilian stablecoins (assets linked to national fiduciary currency) by placing them in an escrow account with resources locked and automatically released via smart-contracts, define the amount in BRL (Real) that will be paid via Pix.\nAt its launch, the p2pix protocol will allow risk removal for users while creating a 'bridge' between fiat and crypto. In the future, it will be possible for a direct integration to be made between Real Digital and public blockchains.\n\n![p2pix_g](https://github.com/doiim/p2pix/assets/71399144/ce50d367-38c8-4bb6-b193-6a3780ab3949)\n\nStep-by-step…\n1. Connect wallet (supported wallets: MetaMask or WalletConnect);\n2. Type amount in Reais (BRL);\n3. Request token (cryptocurrency) = BRZ or MBRL;\n4. Identify the seller (from the list of people);\n  - scan QRcode (or add 'Pix key' manually);\n  - paste identification code (API Pix / bank receipt);\n5. Receive in your wallet (important to know about self-custody).\n\n\n## Why this solution?\n\n![qrcode](https://user-images.githubusercontent.com/71399144/215202440-b08a7cee-b49f-4cee-a5a1-3f8b9755c2c7.png)\n\nLocalBitcoins 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.\n\n\nIf 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 have 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.\n\n![gerenciar](https://user-images.githubusercontent.com/71399144/215202584-ab21e93d-8412-4d96-aa49-6a639144a3b9.png)\n\nThis 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 with other legacy systems which have the minimum infrastructure necessary to generate the proofs on a receipt. Potentially if CBDC are open to be 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 \n\n\nThe 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.\n\n![mobile](https://user-images.githubusercontent.com/71399144/215202733-1d3dd02f-4636-4b4c-a0c5-bd335318fdbc.png)\n\nCurrently 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.\n\n## Whitepaper [PT-BR]\nhttps://docs.google.com/document/d/104hX6RFC9miXHWcHdygoxlNpXL3ct4X9DoX63ECyc8U/edit?usp=sharing\n\n\n\n### MVP data\n––––––––––––––––\n\nSolidity smart contract:\nhttps://mumbai.polygonscan.com/address/0x08Cd9879D69693E5162B3A3eD24DdAb9118d0f0D\n\nCartesi smart contracts:\n- https://mumbai.polygonscan.com/address/0x08cd9879d69693e5162b3a3ed24ddab9118d0f0d\n- https://goerli.etherscan.io/address/0xdd08d2ada2208815238ebe97d41ff219ea129d39\n- https://www.figma.com/file/oIaOVWGTvicMysidMKxQgb/p2pix?node-id=23%3A2\n\nFigma files:\n- Buyer https://www.figma.com/file/Zft4e0u5HUiWGXJUCSEi7q/p2pix-doiim?node-id=1162-737\u0026t=xKeEMPp6YgwA5vIh-0\n- Seller https://www.figma.com/file/Zft4e0u5HUiWGXJUCSEi7q/p2pix-doiim?node-id=1237-687\u0026t=xKeEMPp6YgwA5vIh-0\n- Managing transactions https://www.figma.com/file/Zft4e0u5HUiWGXJUCSEi7q/p2pix-doiim?node-id=1413-687\u0026t=xGbEnGVXdggsTb0L-0\n\nFAQ:\nhttps://docs.google.com/document/d/1dgjZ0aYuW_tIeOX26aV6ZR-OYniJl8txZy4SgeIKUu0/edit?usp=sharing\n\nSandbox:\nhttps://p2pix-staging.vercel.app/\n\nPitches:\n\n[PT-BR]\n- Hackathon Ethereum São Paulo (September/2022) https://docs.google.com/presentation/d/18nOjzByU8nN0BntVbz5qqg5w1tN7pj1mMG_MySzWWpM/edit?usp=sharing\n- Lift Learning for Brazilian Central Bank (November/2022) https://docs.google.com/presentation/d/1nf_9rvv2MsaB3kw3VlZm8cHbwujkVvfskHHlUsC-uI0/edit?usp=sharing\n  - https://www.bcb.gov.br/en/pressdetail/2298/nota\n  - https://www.bcb.gov.br/en/pressdetail/2262/nota\n- Acceleration Next for Fenasbac \n  - Pitch (March/2023) https://docs.google.com/presentation/d/1x0GwuMdfKFC6siXjoOGgs5_QGva_7y5tWtm6GLVbVZM/edit?usp=sharing\n  - Demo day (June/2023) https://docs.google.com/presentation/d/1j_Y2-0yTzMtV3P0lSYt6ux5YD0WdeH4PYtdMUCgvSFo/edit?usp=sharing\n    - https://nextfintech.com.br/en/\n \n[EN-US]\n\nRootstock: Bitcoin Scaling Hackathon (July/2023) https://docs.google.com/presentation/d/1ns-rXz0Vc_LltUZCZop_atN60TUjlBIt_W3KSSQcDDY/edit?usp=sharing\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdoiim%2Fp2pix","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdoiim%2Fp2pix","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdoiim%2Fp2pix/lists"}