Skip to main content

P2P Extension

Init

sequenceDiagram Popup->>Background: Get QR Data Background->>Background: Start listening for new connections Background->>Popup: Return QR Data Popup->>Wallet: Show QR Code (publicKey exchange) Wallet->>Wallet: User scans QR code Wallet->>Background: Send own publicKey to dApp, connection established Background->>Popup: Successful connection
sequenceDiagram Popup->>Background: Get QR Data Background->>Background: Start listening for new connections Background->>Popup: Return QR Data Popup->>Wallet: Show QR Code (publicKey exchange) Wallet->>Wallet: User scans QR code Wallet->>Background: Send own publicKey to dApp, connection established Background->>Popup: Successful connection

Permission Request

sequenceDiagram dApp->>Background: Request Background->>Wallet: Permission Prompt Wallet->>Wallet: User Confirmation Wallet->>Background: Permission Response Background->>dApp: Response

Operation Request

sequenceDiagram dApp->>Background: Request Background->>Wallet: Operation Request opt no threshold Wallet->>Wallet: User confirmation end Wallet->>Wallet: Forge Operation Wallet->>Wallet: Sign Wallet->>Wallet: Broadcast Wallet->>Background: Operation Response Background->>dApp: Response

Signing Request

sequenceDiagram dApp->>Background: Request Background->>Wallet: Sign Request opt no threshold Wallet->>Wallet: User confirmation end Wallet->>Wallet: Sign Wallet->>Background: Sign Response Background->>dApp: Response

Broadcast Request

sequenceDiagram dApp->>Background: Request Background->>Wallet: Signing Request Wallet->>Wallet: User confirmation Wallet->>Background: Signing Response Background->>Background: Broadcast Background->>dApp: Response