Trust Lines and Peer-to-Peer Credit

5 min read

The Largest Toll in Finance

The bank spread is the largest toll in finance. Banks pay depositors roughly 0.5% on savings. They turn around and charge borrowers 10%, 15%, 27% on credit cards. The difference, that 9.5% to 26.5% spread, is the bank's revenue. It pays for marble lobbies, executive compensation, compliance departments, and shareholder dividends. The function banking performs is credit intermediation: taking deposits and making loans. The question is whether that function requires the institution, or whether the institution is just the legacy infrastructure around a simple operation. XRPL trust lines make it possible to perform credit intermediation directly between peers, collapsing the spread toward zero by removing the intermediary entirely.

David Schwartz, XRPL's chief architect, has called trust lines one of the features he loves most about what they built. The reason: they turn every participant into a potential credit provider.
Concept

How Trust Lines Work Mechanically

An issuer creates an asset on XRPL (a token representing USD, a bond, a share, anything). A holder creates a trust line to that issuer, specifying the maximum amount they are willing to hold. This is an explicit, bilateral agreement. The issuer says "I will create this asset." The holder says "I will accept up to X units of it." Neither party is forced into the relationship. The trust line also carries a balance. If you hold 100 units of an issuer's token, your trust line balance is +100. The issuer's corresponding obligation is -100. The ledger tracks both sides automatically. This bilateral structure is fundamentally different from Ethereum's ERC-20 model, where tokens exist as entries in a single contract's mapping and can be sent to any address without prior agreement.

  • Issuer creates token with defined properties (transferable, clawback-enabled, etc.)
  • Holder creates trust line: explicit opt-in with a limit on maximum holdings
  • Balance tracked on both sides: holder's asset = issuer's obligation
  • Trust line can be modified or removed by the holder at any time
  • Reserve requirement: each trust line requires a small XRP reserve, preventing spam
Concept

The Math: Collapsing the Spread

A bank's cost of funds (what it pays depositors) is roughly 2%. Its lending rate depends on the product: 10% for a personal loan, 7% for a mortgage, 27% for a credit card. The spread is pure margin. With peer-to-peer trust lines, a lender and borrower negotiate directly. The lender earns 6-8% instead of 0.5% in a savings account. The borrower pays 6-8% instead of 10-27%. Both sides win. The spread approaches zero because there is no institution in the middle extracting margin. The bank did three things: sourced capital (deposits), assessed risk (underwriting), and enforced repayment (collections). Trust lines handle the sourcing. On-chain history and credentials handle the risk assessment. Smart contracts (or Hooks on XRPL) handle enforcement. The three functions remain. The institution performing them becomes optional.

  • Bank savings rate: ~0.5%. Bank lending rate: 10-27%. Spread: 9.5-26.5%.
  • Peer trust line: lender earns 6-8%, borrower pays 6-8%. Spread: ~0%.
  • Sourcing capital: trust lines replace deposit gathering
  • Risk assessment: on-chain credentials and transaction history replace underwriting departments
  • Enforcement: programmable conditions replace collections departments
Example

Preferential Rates and the Trust Gradient

Trust is not binary. You trust your brother differently than you trust a stranger. Trust lines reflect this. You can set a trust line to your brother at 0% interest, unlimited duration. Your business partner gets 5%, 12-month term. A stranger with 3 years of verified on-chain transaction history and a clean credential gets 8%, 6-month term with automated escrow enforcement. This gradient of trust, expressed as financial terms, is how credit actually works in the real world. Banks flatten it into tiers (prime, subprime) because they cannot model individual relationships. XRPL trust lines can. Every participant sets their own terms. Every relationship carries its own rate. The network of trust lines becomes a credit graph where rates reflect actual trust between specific counterparties, not actuarial averages across millions of strangers.

  • Brother: 0% interest, open-ended, high trust line limit
  • Business partner: 5% interest, 12-month term, moderate limit
  • Verified stranger (on-chain history + credential): 8%, 6-month term, escrow-enforced
  • Unknown address (no history, no credential): no trust line extended
Concept

Your AI as Your Lending Desk

Managing trust lines manually does not scale. The endgame is AI-managed credit. You set parameters: maximum total exposure, minimum credit score (on-chain), acceptable rate ranges, duration limits, collateral requirements. Your AI agent optimizes across those parameters continuously. It extends trust lines when conditions are met, adjusts rates based on repayment history, reduces exposure when risk indicators change, and enforces compliance automatically. XLS-66, the XRPL lending protocol proposal, adds formal lending structures on top of trust lines. Fixed-term loans with defined repayment schedules. SingleAssetVault for risk isolation, ensuring that one bad loan does not contaminate your entire lending portfolio. Interest accrual and repayment enforcement at the protocol level.

Everyone is a bank. Not everyone becomes JP Morgan. The function banking performs, credit intermediation, gets distributed across the network. The institution is no longer required for the function to operate.
Scenario

Governance That Prevents Extraction

Distributing credit creates a new risk: predatory lending at the peer level. Without guardrails, peer credit could replicate the worst patterns of payday lending. DigiTrust's governance framework addresses this directly. Anti-Servitude provisions prevent predatory terms: maximum rate caps, prohibition on compound interest traps, mandatory cooling-off periods. Behavioral Governance scores reputation based on actual on-chain behavior, not just stated credentials. A lender who consistently offers fair terms and a borrower who consistently repays build reputation scores that unlock better terms over time. A lender who offers exploitative rates or a borrower who defaults repeatedly sees their access restricted. The governance is not a suggestion. It is enforced at the protocol level through Hooks and credential requirements. The system does not rely on borrowers reading fine print or lenders acting in good faith. The code prevents extraction.

Summary

Trust lines transform credit from an institutional monopoly into a peer-to-peer function. The bank spread, the largest toll in finance, collapses when the intermediary is removed. Lenders earn more. Borrowers pay less. Preferential rates reflect actual trust between counterparties. AI agents manage the complexity at scale. XLS-66 adds formal lending structures. DigiTrust governance prevents the distributed system from replicating the predatory patterns of the centralized one.

Key takeaway

The bank spread (9.5-26.5%) exists because an institution sits between savers and borrowers. XRPL trust lines remove the intermediary. Lenders earn 6-8% instead of 0.5%. Borrowers pay 6-8% instead of 10-27%. The function of banking gets distributed. The institution becomes optional.

Take the quiz