mirror of
https://github.com/vacp2p/linea-monorepo.git
synced 2026-01-09 04:08:01 -05:00
* placeholder docs * adding more documentation * documentation work in progress * add main linking or index documents * add a link images * add messaging flows * linking operator documentation and folder cleanup * use correct pathing on tokenbridge.md * link workflow documents * add function signatures * remove welcome to * cross reference blob submission and finalization * remove confusing text * use better definition of shnarf * fix broken link * add charter, diagram and address book * docs(LSC): Rename security-council-charter-v1.3.md to security-council-charter.md Signed-off-by: Julien Marchand <julien-marchand@users.noreply.github.com> * Update contracts/docs/mainnet-address-book.csv Co-authored-by: Julien Marchand <julien-marchand@users.noreply.github.com> Signed-off-by: The Dark Jester <thedarkjester@users.noreply.github.com> --------- Signed-off-by: Julien Marchand <julien-marchand@users.noreply.github.com> Signed-off-by: The Dark Jester <thedarkjester@users.noreply.github.com> Co-authored-by: Julien Marchand <julien-marchand@users.noreply.github.com>
1.0 KiB
1.0 KiB
🔁 Interaction Flow: Canonical Token Bridging (L2 → L1)
This document outlines the process of bridging tokens from L2 back to L1 using the canonical bridge mechanism.
🔄 Step-by-Step Flow
- L2 User calls
bridgeToken()on theL2 Token Bridge. - The
L2 Tokenis either:- Transferred via
safeTransferFrom(), or - Burned
- Transferred via
L2 Token Bridgesends a message to theL2MessageServiceusingsendMessage().- The
L2MessageService:- Verifies non-empty data
- Gets the next message number
- Computes the message hash with all the message fields
- Stores message hash and emits event
- Coordinator captures the event and message hash.
- Coordinator:
- Anchors the message Merkle root(s) on L1 during finalization
- Emits events for proof generation
- L1 User claims the message with proof.
L1 Token BridgeexecutescompleteBridging().- The
L1 Tokenis delivered (either minted or transferred) to the L1 User.