Skip to content

Commit

Permalink
Remove incremental commits diagram
Browse files Browse the repository at this point in the history
  • Loading branch information
v0d1ch committed Jun 12, 2024
1 parent a20da8d commit cab382c
Showing 1 changed file with 0 additions and 51 deletions.
51 changes: 0 additions & 51 deletions docs/core-concepts/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
```

0 comments on commit cab382c

Please sign in to comment.