Credential registry
Issuer membership and credential roots
System boundaries and source evidence. Every address below comes from the deployment manifest and the Caatinga artifacts, none is hardcoded in UI code.
Credential eligibility, shared exposure, market accounting and price data have distinct responsibilities.
Issuer membership and credential roots
Tier-specific eligibility rules
Groth16 proof validation
Shared credit allowance and repayment history
Origination, collateral and repayment
Price freshness and cross-asset valuation
Senior and junior tranche accounting
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)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)