Last updated a week ago
A decentralized payment system with minimal fees and instant settlement in Hydra for ADA payments in stores.
This is the total amount allocated to Hydra-Enabled Accounting and Micropayments System. 3 out of 5 milestones are completed.
1/5
Hydra research, accounting system and app design
Cost: ₳ 65,000
Delivery: Month 1 - Sep 2024
2/5
Customer wallet app implementation
Cost: ₳ 56,000
Delivery: Month 2 - Oct 2024
3/5
Hydra based accounting system implementation
Cost: ₳ 70,000
Delivery: Month 3 - Nov 2024
4/5
Merchant app and audit
Cost: ₳ 61,000
Delivery: Month 4 - Dec 2024
5/5
Project completion documentation and informational materials & campaign
Cost: ₳ 44,750
Delivery: Month 5 - Jan 2025
NB: Monthly reporting was deprecated from January 2024 and replaced fully by the Milestones Program framework. Learn more here
Implement an app based on a decentralized payment system leveraging Hydra that would offer under 0.5% fees and instant settlement.
Dependencies on Hydra partial commits and decommits. These are being developed by the Hydra team and will be available for this and other projects soon.
APACHE 2 licence
SDG Goals
1 - End poverty in all its forms everywhere
8 - Promote sustained, inclusive and sustainable economic growth, full and productive employment and decent work for all
SDG Subgoals
1.4 - By 2030, ensure that all men and women, in particular the poor and the vulnerable, have equal rights to economic resources, as well as access to basic services, ownership and control over land and other forms of property, inheritance, natural resources, appropriate new technology and financial services, including microfinance
8.2 - Achieve higher levels of economic productivity through diversification, technological upgrading and innovation, including through a focus on high-value added and labour-intensive sectors
Today, most purchases are made via credit or debit cards, which incur significant fees paid to banks and payment processing networks, ranging between 1.5% and 3.5%. An alternative could be using blockchain technology to facilitate payments, though the settlement process varies depending on the chain (Cardano confirmation time is between 20 and 60 seconds) and can increase in the event of network congestion. As more transactions are placed on-chain, congestion becomes a bigger issue. Despite relatively smaller fees, when accumulated, these can significantly impact micropayments, particularly for smaller amounts.
We aim to address both the fee and confirmation time aspects of micropayments while ensuring a smooth user experience throughout the payment process.
Our solution involves designing and building a mobile wallet application that allows users to pay with ADA at merchant stores using the contactless NFC communication protocol. The application enables users to load ADA into their wallet, which can then be used to purchase desired products through a simple payment process.
There are a few other initiatives aiming to tackle payments by leveraging Hydra. After analysing those it seems that the use cases these were designed for are conceptually different from what we are looking to build in this project. Specifically we need the ability to mimic a many to many relationship between customers and merchants.
The wallet app will utilize a custom accounting system specifically designed to manage the books and records of both individual users and merchants at scale. This custom accounting system will leverage Hydra and Hydra Head specifically. Hydra Heads have one major limitation: they allow only up to 5 participants per head. Our goal is to develop a smart contract where every user will have associated a unique script utxo containing their funds (that script address will represent the system wallet). These utxos will be committed to a Hydra Head and every time a payment is made, a transaction occurs in the head, spending the corresponding user script utxo extracting the funds and paying to the merchant address. Every certain amount of time, a decommit is made so merchants can see their funds on layer 1. Also the users could perform withdrawals in a similar way. The funds settlement process would be triggered at specific points in time, either on-demand or periodically, like at end of day or when enough microtransactions have occurred to fill a Layer 1 ADA transaction. As a result, there will be minimal fees associated with moving funds.
In order to remove concerns around custody of the funds we are looking to implement the solution in such a way that the Hydra Head is managed by multiple nodes deployed across different notable SPOs. This way funds transfer would be decentralised and not depend on a single party.
The solution will be comprised of several components:
Here are the workflows and modules we'll implement in the project:
https://docs.google.com/presentation/d/1cQ-AR27TiA2CwvWXn8RItx3V8Z7u6wiYYEAyMoP9Ics/edit?usp=sharing
The wallet app will introduce a new payment mechanism based on the Cardano blockchain, encouraging wider adoption of Cardano by both end users and merchants. This will directly lead to more payment transactions per each on-chain transaction on Cardano. Because the wallet app will offer significantly lower fees compared to traditional payment systems, it will benefit both users and merchants by allowing merchants to either reduce the price of goods paid for using the wallet app or redirect the saved fees into other customer incentives.
Beyond the direct benefits of the wallet app, the custom accounting system can have a significant impact, as it can be reused to manage the books and records for other use cases. This will allow other interested parties to develop applications that leverage the custom accounting system while still enjoying the benefits it offers in terms of fees and settlement time.
[Capability]
Our team is made up of two dedicated professionals whose skills complement each other: Tudor, a seasoned entrepreneur with extensive experience in the Cardano ecosystem, and Sorin, a software delivery specialist experienced in building highly efficient IT systems.
Together we are committed to deliver real life utility with the Cardano ecosystem.
[Feasibility]
We have engaged in several discussions with Hydra team and TxPipe about the feasibility of building such a system, and based on these talks, we are confident that it can be achieved. We are also in discussion with Hydra team about some potential enhancements related to the consensus mechanism currently used in Hydra Head - it currently requires 100% consensus between all Hydra nodes which adds security while reducing resiliency and potentially increasing consensus time in case of network latency or node unavailability.
Research of current state of Hydra, taking into account limits for adding utxos to heads, commits and decommits. Also how to query information from the Hydra head. Note that partial commit/decommit feature is a necessary feature for this scope and the Hydra team is already working on finishing it up.
Research the work previously done with Hydra Pay and meet with Obsydian to fully understand the work that has already been completed.
Create the detailed design for a Hydra based custom accounting system that will enable managing the books and records for end users and merchants.
Create the design / UX for the wallet app.
Output
Wireframes for the customer app in Figma
Design for the accounting system including rationales for adopting specific design choices.
Implement the wallet app that will enable the payment process from a customer end. IOS / Android
Output
User wallet app for IOS & Android
Implement the custom accounting system based on the previously developed design.
Outputs
Aiken validators and minting policies for locking user funds and performing payments.
Typescript off-chain code for transaction building and querying.
Implement the merchant side of the app to enable merchants to manage the process on their end and integrate it with the NFC reader.
Conduct audit and security testing
Outputs:
Merchant app
Audit & Testing report
Project completion documentation and informational materials & campaign
Outputs
Demo of the end to end flows (Deposit, Withdraw, Payment).
Detailed documentation on implementation.
Informational materials and campaign.
Tudor Cotruta
Tudor's role involves maintaining and facilitating interactions within the Cardano ecosystem, managing the project to ensure deadlines and commitments are met, and actively contributing to communication with businesses, developers, and other entities.
LinkedIn:
https://www.linkedin.com/in/tudor-cotruta-a6661a88/
Sorin Canter
Sorin holds a degree in applied mathematics, a master's in information technology, and has over 20 years of experience in the IT industry in roles such as engineer, consultant, teacher, and coach. He also has extensive leadership and management experience. His role is to provide analytical insight to the project, digest and leverage technical matters, and proactively contribute to the development process.
LinkedIn:
https://www.linkedin.com/in/sorin-canter-21716327/
Together, we have demonstrated reliability and the ability to deliver through our participation in Fund 11 for the blockchain-based wine supply chain tracking platform.
Razali 'Raz' - Catalyst Advisor
LinkedIn: https://www.linkedin.com/in/razali-samsudin/
Hydra research - 10k Ada
Custom accounting system (SC) design - 30k Ada
UX for wallet app - 10K Ada
User wallet IOS - 25k Ada
User wallet Android - 25k Ada
Custom accounting system smart contract and offchain code implementation and testing - 55k Ada
Merchant app - 35k Ada
Audit and security testing - 50k Ada
Project completion documentation - 10k Ada
Informational materials - 5k Ada
Onboarding and marketing campaign - 15k Ada
Management and contingency funds - 25K
Milestones preparation and submission - 1.75k Ada
Total: 296750 Ada
We believe there is significant value for the Cardano ecosystem, as the wallet app will introduce a new use case that offers considerable competitive advantages. This, in turn, should lead to broader adoption of the Cardano ecosystem (with new users and merchants joining) while generating new transactions that will boost the growing usage of the Cardano blockchain.
Moreover, the Hydra accounting system developed as part of the project will add significant value by showcasing new use cases for the Hydra and Hydra Head protocol. This could inspire other enthusiasts to explore Hydra's potential, while also enabling developer groups to reuse and build on top of the Hydra accounting system without needing to reinvest time and money in redeveloping its exposed capabilities