Skip to content

Commit

Permalink
Update EIP-7251: change request to flat encoding
Browse files Browse the repository at this point in the history
Merged by EIP-Bot.
  • Loading branch information
fjl authored Sep 26, 2024
1 parent 7362967 commit 4392dec
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions EIPS/eip-7251.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,12 @@ The new consolidation request is an [EIP-7685](./eip-7685.md) request with type
2. `source_pubkey`: `Bytes48`
3. `target_pubkey`: `Bytes48`

The [EIP-7685](./eip-7685.md) encoding of a withdrawal request **MUST** be computed as follows:
The [EIP-7685](./eip-7685.md) encoding of a consolidation request is as follows. Note we simply return the
encoded request value as returned by the contract.

```python
encoded = CONSOLIDATION_REQUEST_TYPE ++ rlp([source_address, source_pubkey, target_pubkey])
request_type = CONSOLIDATION_REQUEST_TYPE
request_data = source_address ++ source_pubkey ++ target_pubkey
```

#### Consolidation request contract
Expand Down

0 comments on commit 4392dec

Please sign in to comment.