From cab382c315017509c6c2b2c0e2871cdf8e80d94d Mon Sep 17 00:00:00 2001 From: v0d1ch Date: Wed, 12 Jun 2024 11:09:55 +0200 Subject: [PATCH] Remove incremental commits diagram --- docs/core-concepts/index.md | 51 ------------------------------------- 1 file changed, 51 deletions(-) diff --git a/docs/core-concepts/index.md b/docs/core-concepts/index.md index a416aa28c92..8e1489c5c34 100644 --- a/docs/core-concepts/index.md +++ b/docs/core-concepts/index.md @@ -51,54 +51,3 @@ sequenceDiagram HeadLogic -->> Alice: DecommitFinalized ``` -### Incremental Commits - -Scenario: Alice wants to commit some `UTxO` owned by her private key to the -Open Head. Similarly to "external" commit this means that the node can only -prepare balance and sign the transaction but Alice still needs to add her -signature and submit the transaction to the chain. - -```mermaid -sequenceDiagram - Alice->>+API: POST /commit (UTxO) - API->>HeadLogic: Commit UTxO - - par broadcast - HeadLogic->>HeadLogic: ReqInc incUTxO - and - HeadLogic->>Node B: ReqInc incUTxO - end - - HeadLogic -->> Alice: WS CommitRequested - - par Alice isLeader - HeadLogic->>HeadLogic: ReqSn incUTxO - and - HeadLogic->>Node B: ReqSn incUTxO - end - - Note over HeadLogic,Chain: PROBLEM: Need to verify incUTxO on L1 as we authorize the TxIns to use (because of on-chain scripts). - - HeadLogic->>HeadLogic: sig = sign snapshot incl. inputs(incUTxO) - - par broadcast - HeadLogic->>HeadLogic: AckSn sig - and - HeadLogic->>Node B: AckSn sig - end - - Node B->>HeadLogic: AckSn sig - - HeadLogic -->> Alice: WS SnapshotConfirmed - HeadLogic -->> Alice: WS CommitApproved - - HeadLogic -->> API: SnapshotConfirmed - API->>API: draftIncrementTx vk snapshot sig >>= finalizeTx >>= signTx sk - - API-->>-Alice: IncrementTx - Alice->>Alice: sign IncrementTx - Alice->>Chain: submit IncrementTx - - Chain->>HeadLogic: OnIncrementTx - HeadLogic-->>Alice: CommitFinalized -```