The Sacred Bridge enables secure asset and message transfer between Solana L1 and the Oasis L2, utilizing optimistic rollup technology with fraud proofs.
Solana L1 ↕ ┌─────────────────────┐ │ Bridge Portal │ └─────────────────────┘ ↕ Oasis L2 Components: - L1 Bridge Contract - L2 Bridge Contract - Message Queue - Validator Network - Challenge System
1. Lock assets in L1 contract 2. Generate deposit proof 3. Submit proof to L2 4. Wait for confirmation 5. Receive assets on L2
1. Burn assets on L2 2. Generate withdrawal proof 3. Wait challenge period 4. Submit proof to L1 5. Claim assets on L1
pub struct BridgeMessage { // Message identifier id: Hash, // Source chain source: ChainId, // Destination chain destination: ChainId, // Message sender sender: Address, // Message recipient recipient: Address, // Message payload payload: Vec<u8>, // Nonce for uniqueness nonce: u64, }