Inspiration: The global student debt crisis is stifling innovation and social mobility. Traditional loans are rigid, creating a burden that exists regardless of a graduate's success. We wanted to flip this model on its head.

We were inspired by the concept of "Human Capital Contracts" but realized they lacked a transparent, liquid market. We asked: What if a student could issue "equity" in their future career instead of taking on debt? This aligns incentives perfectly—investors profit only when the student succeeds, and students receive funding without the stress of compounding interest. We chose the XRP Ledger (XRPL) because its native Decentralized Exchange (DEX) and low transaction fees make it feasible to micro-securitize education financing semester by semester.

What it does: Tokenised Crowd-sourced Scholarships is a blockchain-based platform that facilitates Income Share Agreements (ISAs) via the XRPL.

For Students: It acts as a launchpad. They mint tokens (e.g., PYT) representing a small percentage of future income (0.01% per token). These tokens are sold on the open market to fund tuition for the current semester.

For Investors: It provides access to a new asset class. They buy tokens to fund education and, in return, receive automated dividend payouts from the student's post-graduation income.

The "Market Mechanism": Uniquely, our system uses dynamic supply management. If a student performs well academically, their token price rises on the DEX. A higher price means they need to mint fewer tokens to fund the next semester, preventing dilution of their future income.

How we built it: We built the core logic using Python and the xrpl-py library to interact directly with the XRP Ledger Testnet.

Backend: We implemented a stateful simulation that manages three distinct wallets (Student/Issuer, Initial Investor, Market Buyer). We used core XRPL primitives: TrustSet for enabling token holding, Payment for issuance and dividends, and OfferCreate for placing bids/asks on the native DEX.

Frontend: We used Gradio to build an interactive UI that visualizes the entire lifecycle—from wallet generation and token minting to secondary market trading and dividend distribution.

Financial Logic: We coded a dynamic minting algorithm (floor(SemesterFee / LatestTradePrice)) that automatically adjusts the inflation rate based on real-time market data derived from ledger transaction metadata.

Challenges we ran into, Ledger State & Asynchronous Conflict: One of our biggest hurdles was a conflict between Python 3.12, Gradio's server, and the nest_asyncio event loop. We had to engineer a custom patch to ensure our XRPL websocket client could run concurrently with the UI server without crashing.

Extracting "True" Market Price: Determining the actual executed price of a trade on the ledger was difficult. We couldn't just rely on the offer price; we had to parse the raw transaction metadata to calculate the exact ratio of XRP spent vs. tokens received to ensure our dynamic minting formula was accurate.

Trust Line Friction: We learned the hard way that on XRPL, you cannot pay a user a custom token unless they have explicitly signed a TrustSet transaction first. Handling this UX friction within a seamless simulation required careful sequencing of transactions.

Accomplishments that we're proud of: A Self-Correcting Economy: We successfully implemented the "Dynamic Supply" feature. Seeing the code automatically calculate that a student needs to mint fewer tokens because their stock price went up was a huge "aha!" moment—it proved the market incentives work.

End-to-End Simulation: We went beyond simple token creation. We built a full lifecycle demo that simulates the secondary market, tracks the "Last Transacted Price," and executes dividend payouts proportional to token holdings, all on the live Testnet.

Educational Transparency: We built a system where every agreement, trade, and payout is verifiable on the blockchain, removing the opacity of traditional student loan servicing.

What we learned, Financial Engineering on Ledger: We gained deep insight into how order book mechanics (Maker vs. Taker) influence asset pricing and how to derive implied valuation from metadata.

The Power of Native Primitives: We learned that using XRPL's native DEX is significantly more efficient for this use case than writing complex smart contracts for simple swaps.

State Management: We mastered persisting state across different stages of a user flow in a stateless web interface, ensuring that the "Issuer" from Step 1 is the exact same wallet receiving funds in Step 3.

What's next for Tokenised Crowd-Sourced Scholarship, Verified Credentials (DID): Integrating verifiable credentials to prove a student's GPA on-chain. This would allow the system to automatically restrict minting if a student fails a semester.

Stablecoin Integration: Transitioning the funding currency from XRP to RLUSD (Ripple USD) to ensure students receive stable fiat value for their tuition fees.

Smart Contract Dividends: Implementing XRPL Hooks to automate the dividend distribution so that when a graduate deposits income, it is instantly split and routed to token holders without manual intervention.

Built With

Share this project:

Updates