Documentation Repayment proof
Repayment proof
A lender should not have to take the borrower's word, or the inspector's, that a repayment happened. Here a payment on the XRP Ledger testnet is credited to a loan on Coston2 from a proof agreed by Flare's data providers.
Status. Run once on Coston2 and the XRP Ledger testnet on 22 November 2026, with an invented loan. It reads registry v1, the earlier demo. It is a separate strand from the signed record and has not been changed for it.
The same flow in words
- The borrower pays on the XRP Ledger testnet. The payment’s memo carries the loan’s 32-byte reference.
- The client prepares a request of type
Payment. It only reads, and handles no key. - The request and its fee go to FdcHub on Coston2.
- Flare’s data providers check the payment and agree on it in a voting round.
- After the round the proof is fetched and handed to
creditRepayment. Anyone may do this. - The ledger checks the proof with Flare’s verification contract, checks the receiving address and the reference, and credits the loan once.
- The vault counts only repayments the ledger has credited. The borrower cannot report one.
Where it sits beside the signed record#
The signed record answers one question: what did the inspector find, and who says so. Its signature shows who issued the record and that it was not changed. It does not show that the facts are true. A repayment is another kind of fact, about money and not about hardware. This page shows that Flare's Data Connector can bring such a fact from another ledger to a contract on Coston2.
It is not the "second fact" of the signed-record design. That name is kept for Flare Confidential Compute's role going forward: a coverage check on a registered machine, bound to the digest of the signed record, which the lender's vault can require. That is a later package, and Flare Confidential Compute is not on Flare mainnet. See FCC extension.
No further Data Connector work is planned for now, and the repayment vault has not been moved to registry v2.
The pieces#
| Piece | What it does |
|---|---|
RepaymentLedger | The owner registers a loan. Anyone hands in a proof of type Payment. The ledger checks it and adds the amount to the loan's repaid total, once |
RepaymentAwareVault | The loan vault with one change: the borrower cannot report a repayment. Only repayments the ledger has credited count |
| FDC client | Prepares the request, works out the voting round, waits, fetches the proof. It only reads and handles no key |
Flare calls the request an attestation request, and Payment is one of its types. The word is Flare's term for a fact its data providers agree on. It is not a description of the inspection service.
What was run#
On 22 November 2026, on Coston2 and the XRP Ledger testnet, with an invented loan:
| Item | Value |
|---|---|
| Loan (invented) | loan-demo-0001, principal 250,000 drops |
| Payment | 100,000 drops, with the loan's reference in its memo |
| Voting round | 1521785 |
| Result | Credited 100,000; outstanding 150,000 |
| The same proof again | Refused with AlreadyCredited |
The payment was made from two throwaway XRP Ledger testnet accounts that existed for that one run.
What a credited repayment proves#
- A transaction with that hash on the XRP Ledger testnet is a successful payment.
- It delivered that amount to the address registered for the loan.
- Its memo carried the loan's 32-byte reference.
- It was credited once.
What it does not prove#
- That the address belongs to the lender. The owner of the ledger registers it.
- That the payment was owed, or who sent it. Anyone may pay a loan.
- Anything about a real loan or a real lender. The loan is invented and test XRP has no value.
- That real GPU lenders take repayment this way. Most are repaid in dollars through a bank, which the Data Connector cannot see.
Trust that remains: Flare's data providers, Flare's governance of its verification contracts, and the ledger's owner.
Flare's own page: FDC overview.