KeyStone enforces compliance at settlement time. Compliance is the only step that requires KeyStone’s off-chain involvement - everything after compliance is handled autonomously by the contracts.Documentation Index
Fetch the complete documentation index at: https://docs.keystoneos.xyz/llms.txt
Use this file to discover all available pages before exploring further.
Three-layer architecture
1. Off-chain screening
KeyStone’s compliance oracle screens parties via external APIs: LSEG World-Check - Entity-level screening against 100M+ records across 240+ countries:- Sanctions lists (OFAC, EU, UN, HMT)
- Politically Exposed Persons (PEPs)
- Adverse media
- Enforcement actions
- Sanctions exposure
- Mixer/tumbler interaction
- Fraud and scam associations
- Protocol risk attribution
2. On-chain attestation
After screening, results are attested to the ComplianceRegistry smart contract:3. Contract-enforced gate
The SettlementCoordinator checksareAllPartiesCleared(settlementId) on the ComplianceRegistry before allowing transitions past compliance. The engine cannot skip compliance - the contract enforces it.
How it works in a settlement
Manual compliance decisions
When a party is flagged, a compliance officer reviews the screening details in the KeyStone Dashboard and submits a decision. Decisions can also be submitted via the API:approve- Override the flag, allow the settlement to proceedreject- Reject the settlement, transition toROLLED_BACK
Open attestation interface
KeyStone operates the default compliance oracle, but the attestation interface is open:- Platform-operated oracles: Platforms can run their own compliance screening and submit attestations directly to the ComplianceRegistry
- Multi-attester: Templates can require attestations from multiple providers for higher assurance
- Verifiable: All attestations are permanent on-chain records - a false attestation is provable liability
What KeyStone stores
| Layer | What is stored |
|---|---|
| Off-chain (KeyStone DB) | Compliance status + reference ID pointing to provider’s record |
| On-chain (ComplianceRegistry) | Hashed party identifier + status enum + hashed reference ID |
Screening performance
| Metric | Value |
|---|---|
| Average screening time | 2-4 seconds |
| Auto-pass rate | ~95% |
| Supported jurisdictions | 240+ countries |
| Re-screening | Every settlement (not cached) |