Collaborative On-Chain Settlement
Obolus Network's Confidential Settler is an open, decentralized network of Chainlink CRE workers that execute private transaction intents.
Why Integrate?
Integrating as a Settler allows you to provide high-performance clearing services to our institutional partners and capture a share of the protocol's execution fees.
Key Components
- Runtime: Bun
- Infrastructure: Chainlink CRE (SGX Enclave)
- Library:
obolus-cre-toolkit(ECIES decryption, EIP-712 verification)
Settler Workflows
A typical Settler implements three primary workflows:
execute-deposits/: Monitors the Obolus Server for encrypted deposit intents and executes aRWAVault.deposit(...)transaction.execute-withdrawals/: Processes encrypted withdrawal intents and executesRWAVault.withdraw(...).check-positions/: Fetches real-time price feeds, calculates NAV across user portfolios, and triggers stop-loss or liquidation logic based on encrypted threshold triggers.
Deployment Guide
- Configure Environment: Fill in
.envwith yourCRE_PRIVATE_KEYandVAULT_OPERATOR_KEY. - Install Dependencies: Run
bun installin each workflow directory (execute-deposits/, etc.). - Local Simulation: Use the
./simulate.shscript to test the settlement logic against a local Ganache or Anvil fork. - CRE Workflow Deployment:
cre workflow deploy ./execute-deposits --target=production-settings
Security Best Practices
- Strict TEE isolation: Ensure that no plaintext keys or transaction data are ever logged outside of the SGX enclave.
- Nonce Management: Properly handle on-chain transaction nonces to prevent collisions across multiple workers.
- Oracle Verification: Always cross-reference user-submitted price data with the Chainlink Data Streams inside the TEE.
For more on our cryptography, visit the ECIES Encryption section.