Skip to content

Commit

Permalink
slashing diagram
Browse files Browse the repository at this point in the history
  • Loading branch information
JasonVranek committed Nov 7, 2024
1 parent 9407af4 commit f9b02ba
Showing 1 changed file with 22 additions and 4 deletions.
26 changes: 22 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,11 @@
- [X] Rename `proxyKey` to `commitmentKey`.
- [X] ~~Optimistically accept an `OperatorCommitment` hash. It can be proven as fraudulent by generating the merkle tree in the fraud proof.~~
- [X] Make the unregistration delay parameterizable by the proposer but requires it to be at least `TWO_EPOCHS`.
- [ ] Successful challenger gets to claim the collateral (how much?).
- [ ] Spec out the `Registration` message signed by a Validator BLS key.
- [X] Spec out the `Registration` message signed by a Validator BLS key.
- [X] Diagram the registration process
- [ ] Successful challenger gets to claim the collateral (how much?).
- [ ] Make sure no one can overwrite an `OperatorCommitment`
- [ ] Save the `Operator.collateral` as GWEI.
- [ ] Diagram the registration process
- [ ] Add field to `Operator` struct to signal if they are a gateway (open for discussion).



Expand Down Expand Up @@ -132,4 +131,23 @@ function slashRegistration(
bytes32[] calldata proof,
uint256 leafIndex
) external view;
```

```mermaid
sequenceDiagram
autonumber
participant Challenger
participant URC
participant Operator
Operator->>URC: register()
URC->>Challenger: events
Challenger->>Challenger: verify BLS off-chain
Challenger->>Challenger: detect fraud
Challenger->>Challenger: generate merkle proof
Challenger->>URC: challenge()
URC->>URC: verify merkle proof
URC->>URC: verify BLS signature
URC->>Challenger: transfer reward
```

0 comments on commit f9b02ba

Please sign in to comment.