This repository contains the CosmWasm smart contract for TorramChain’s integration with Circle’s Unified Bridge (CUB).
The contract enables issuance and redemption of USDCx on Cosmos, ensuring every USDCx remains fully backed 1:1 by native USDC held in Circle’s custody, while meeting Circle’s security and audit requirements.
Timeline: Weeks 1–2 of the integration roadmap
Deliverable: Auditable CosmWasm USDCx contract aligned with Circle’s token specification
- Mint with Circle Attestation
- Entry point:
execute_mint - Verifies Circle attestation signature (secp256k1) (stubbed in Phase 1)
- Enforces nonce replay protection
- Entry point:
- Burn with BurnIntent
- Entry point:
execute_burn - Emits
BurnIntentevent for Circle relayer submission
- Entry point:
- Attester Management
- Admin-only control via
SetAttester - Maintains attester allow-list on-chain
- Admin-only control via
- Nonce Replay Protection
- Each mint/burn requires a unique
nonce - Used nonces tracked in storage
- Each mint/burn requires a unique
- Query Endpoints
VerifyNonce: check if a nonce has been usedIsAttester: check if an address is an authorized attester
contract.rs– Core entry points (instantiate, execute, query)state.rs– Storage for config, attesters, and nonceserror.rs– Custom errors (Unauthorized,NonceUsed,InvalidAttestation)helpers.rs– Wrappers for relayer integration and testing
| Phase | Description | Status |
|---|---|---|
| Phase 1 | Contract development (mint, burn, attesters, nonces, unit tests) | Complete |
| Phase 2 | Attester infrastructure (secure KMS/HSM keys, rotation) | ⏳ Pending |
| Phase 3 | Relayer integration (Circle APIs: /attestation, /withdraw) |
⏳ Pending |
| Phase 4 | Monitoring & governance (supply checks, withdrawal limits, pause) | ⏳ Pending |
| Phase 5 | External audit & fixes | ⏳ Pending |
| Phase 6 | Circle review & production launch | ⏳ Pending |
cargo wasmcargo testcargo schemaPhase 1 complete: USDCx CosmWasm contract with mint, burn, attester management, nonce replay protection, and attestation verification stub.
Next: Phase 2 – provision secure attester infrastructure and prepare for Circle relayer integration.