Skip to content

Commit

Permalink
fix: correct p2p block signature data (#392)
Browse files Browse the repository at this point in the history
* fix: correct p2p block signature data

* specs: p2p block signing spec - fix line length

---------

Co-authored-by: protolambda <[email protected]>
  • Loading branch information
ncitron and protolambda authored Sep 26, 2024
1 parent a129155 commit 8163c9d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion specs/protocol/rollup-node-p2p.md
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,8 @@ The `signature` is a `secp256k1` signature, and signs over a message:

- `domain` is 32 bytes, reserved for message types and versioning info. All zero for this signature.
- `chain_id` is a big-endian encoded `uint256`.
- `payload_hash` is `keccak256(payload)`, where `payload` is the remaining bytes of the payload.
- `payload_hash` is `keccak256(payload)`, where `payload` is the `payload` in V1 and V2,
and `parentBeaconBlockRoot ++ payload` in V3.

The `secp256k1` signature must have `y_parity = 1 or 0`, the `chain_id` is already signed over.

Expand Down

0 comments on commit 8163c9d

Please sign in to comment.