Skip to main content
This page explains the CoverFi architecture for investors, judges, partners, and technical reviewers. CoverFi is a self-custodial stablecoin protection and payment proof product built on Stellar and Soroban. The target architecture keeps user custody, contract rules, operational controls, and reporting data in separate layers so the product can be audited, measured, and scaled.
CoverFi protection is not insurance and does not guarantee payouts. Outcomes depend on wallet signatures, contract rules, oracle freshness, reserve capacity, and Stellar network execution.

Core idea

Users keep control of their Stellar wallets. Soroban contracts enforce protection positions, reserve capacity, price checks, username ownership, and receipt proofs. Backend services make the system usable, but they should not become the financial source of truth. What investors should understand first

Users keep custody

Users sign important actions from their own Stellar wallet. CoverFi should never ask for a seed phrase or private key.

Contracts enforce rules

Soroban contracts define positions, premiums, reserve locks, claim accounting, usernames, and receipt proofs.

Reserves make risk visible

Reserve accounting shows total reserve, locked capacity, reserved claims, available capacity, and coverage.

Ledger data proves activity

Ledger ingestion turns confirmed Stellar and Soroban activity into dashboards, status pages, alerts, and investor metrics.
Product thesis Stablecoins move quickly, but users still need downside protection, readable payment identities, verifiable receipts, public reserve and claim transparency, and clear explanations of on-chain activity. CoverFi combines those needs into one Stellar-native product. Architecture views The system map explains how the product, contracts, wallets, reserves, oracle, and backend connect. The ledger transparency pipeline shows how confirmed Stellar activity becomes dashboards, reserve reporting, alerts, and investor metrics.

System architecture map

The CoverFi system should be understood as one connected architecture. The user signs from a wallet, the application prepares and explains actions, Soroban contracts enforce protocol rules, and ledger ingestion turns confirmed activity into usable data. Architecture layers Core flows

Ledger transparency pipeline

A blockchain ledger is the official record of confirmed transactions. Ledger ingestion is CoverFi reading that record, decoding protocol activity, checking it, and turning it into useful product and investor data. This matters because users and investors should not have to inspect raw blockchain events manually. CoverFi should convert ledger truth into clear state:
  • Which positions are active.
  • Which claims are triggered.
  • Which payouts are allocated.
  • Which principal withdrawals are complete.
  • How much reserve is available.
  • Whether the oracle is fresh.
  • Which usernames are registered.
  • Which receipts are anchored.
  • Whether issuer asset flags changed.
Ledger processing model The ingestion pipeline should be durable, replayable, auditable, and strict about cursor movement. Rules: advance the durable cursor only after raw records and projections commit; make handlers idempotent by network, ledger sequence, transaction hash, operation index, contract identifier, and event index; keep raw events for rebuilds; stop advancing when accounting invariants fail; expose ingestion lag and last reconciled ledger as public health signals. Required read models Asset, issuer, and compliance controls CoverFi should not rely on asset symbols alone. Each supported asset needs precise identity, risk policy, issuer monitoring, and risk-based compliance. KYC data should not be stored on-chain. If eligibility checks become necessary, the compliance service should store private review data off-chain and expose only the minimum eligibility result needed by the application or contracts. Investor metrics

Implementation status and roadmap

Why this architecture is fundable CoverFi is fundable because it does not ask users or investors to believe in an invisible backend promise. User keys stay self-custodied; contracts enforce protection rules; reserve capacity is locked before exposure is accepted; claims follow contract-defined accounting; receipts are anchored with cryptographic proof; ledger ingestion makes activity measurable; oracle and governance authority can be separated; and compliance can be introduced by risk level without redesigning the protocol. That supports a staged path from testnet demonstration to audited, capped mainnet deployment. Current implementation reality The canonical coverfi-contracts workspace is the source of truth for the current Soroban architecture: Protection Engine, Reserve Vault, Protected Balance Vault, Oracle Adapter, Quorum Oracle Source, Username Registry, Receipt Registry, ZK Verifier, Payment Lock Engine, and Floor Shield Engine. The initial mainnet scope should stay limited to audited, launch-critical contracts while optional product surfaces mature through testnet evidence. Important gaps to close:
  1. Generate and publish typed clients from the canonical contract specifications.
  2. Keep protection creation, claim status, username payments, and receipt anchoring aligned to deployed contract ABIs after every redeploy.
  3. Expand durable ledger ingestion and reconciliation for payments, usernames, receipts, positions, claims, reserve state, and oracle freshness.
  4. Complete production partner controls for webhook validation, idempotency, per-key rate limits, and signed delivery verification.
  5. Separate governance, oracle publishing, reserve funding, and operational signing roles before meaningful mainnet value.
  6. Complete third-party review, legal review, incident response, and mainnet smoke-test runbooks.
Recommended roadmap Final message
The combined architecture tells one story: users stay in control, contracts enforce the rules, reserves make protection credible, and ledger intelligence makes the protocol transparent enough for users, partners, judges, and investors to trust.