Testnet · BetaZekCap is in active development. Project-issued test assets only, unaudited, no real funds.
Protocol / Contracts
Stellar Testnet
Protocol / V3

Protocol architecture.

System boundaries and source evidence. Every address below comes from the deployment manifest and the Caatinga artifacts, none is hardcoded in UI code.

System map · V3
One proof.
Coordinated contracts.

Credential eligibility, shared exposure, market accounting and price data have distinct responsibilities.

Call graph

Acyclic: the market calls vault and controller, neither calls back
Browser proofCredential registryZK verifierPolicy registryCredit controllerLending marketOracle routerAsset vault
 Grouping is conceptual. The exact call and auth tree is listed further down.
01

Credential registry

Issuer membership and credential roots

02

Policy registry

Tier-specific eligibility rules

03

ZK verifier

Groth16 proof validation

04

Credit controller

Shared credit allowance and repayment history

05

Lending market

Origination, collateral and repayment

06

Oracle router

Price freshness and cross-asset valuation

07

Asset vault

Senior and junior tranche accounting

V3 call and auth tree

Borrower signature (root auth entry)
  └── LendingMarketV3.borrow(borrower, request, proof, signals)
        ├── OracleRouter.pair(XLM, debt) -> Reflector (age and skew checks)
        ├── TierPolicyRegistry.get_policy(market, tier)
        ├── CreditControllerV3.authorize_and_reserve(market, loan_id, borrower, request, proof, signals)
        │     ├── [market.require_auth() + borrower.require_auth()]
        │     ├── CredentialRegistry.is_active(root, epoch)
        │     ├── TierPolicyRegistry (active policy hash, history rule)
        │     ├── AssetRegistry + OracleRouter (fresh mark of every open loan)
        │     ├── CreditController V1 (legacy exposure, credit domain)
        │     └── ZkVerifierV3.verify(proof, 18 signals) [BN254 pairing]
        ├── SAC(XLM).transfer(borrower -> market, required_xlm)
        └── LendingVault.fund_loan(...) -> SAC(debt).transfer(vault -> borrower)

V1 call and auth tree

Repayment only after V3
Borrower Signature (root SorobanAuthEntry)
  └── LendingMarket.borrow(borrower, amount, max_col, max_int, proof, signals)
        ├── PolicyRegistry.get_active_policy(market)
        ├── CreditController.authorize_and_reserve(market, loan_id, borrower, amount, proof, signals)
        │     ├── [market.require_auth() + borrower.require_auth_for_args(...)]
        │     ├── CredentialRegistry.is_active(root, epoch)
        │     ├── PolicyRegistry.get_active_policy(market)
        │     └── ZkVerifier.verify(proof, pub_signals) [CAP-0074 BN254 Pairing]
        └── SAC.transfer(borrower -> market, collateral)
Stellar Testnet · Project-issued test assets · Not audited · Not affiliated with the Stellar Development FoundationSource code