The Protocol (sRail)
sRail is the atomic settlement protocol at the core of ASaaS — built on the Swap-Minting protocol, implemented as CosmWasm contracts on sovereign chains.
sRail Protocol Specification
The formal specification of messages, states, and guarantees for atomic sovereign settlement.
Swap-Minting Protocol
The core sRail mechanism: every settlement is a swap-mint — one extinguishment and one mint bound into a single atomic pair that commits together or reverts together.
Atomic Settlement Engine
The engine that executes the swap-mint, binding extinguish and mint into one commit or one revert.
Settlement Finality
Finality marked on-chain by the settlement finality contract, verifiable by both sovereigns.
Exchange Rate Mechanism
An exchange-rate oracle supplying market or agreed rates with full history.
Compliance & AML
Pre-lock compliance checks against both jurisdictions' AML and KYC requirements.
Sanctions Screening
Real-time screening against the sanctions lists agreed in the bilateral framework.
Dispute Resolution
A defined process — evidence from the immutable log, bilateral review, and arbitration.
Exit Mechanism
Either sovereign can exit the corridor with notice, with all positions settled and records retained.
srail.initiate_settlement("NGN", "CNY", 25_000_000, receiver)
→ authenticate(payer, receiver, sig)
→ check_compliance(payer, receiver, amount)
→ determine_rate("NGN", "CNY")
→ lock() → extinguish() → mint() → finalize() → reconcile()