Skip to content

Commit

Permalink
Use EIP-55 mixed-case checksum address encoding for execution address
Browse files Browse the repository at this point in the history
  • Loading branch information
nflaig committed Dec 16, 2023
1 parent 6559c85 commit a170227
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
5 changes: 2 additions & 3 deletions apis/eventstream/index.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ get:
description: The node has received a BLS to execution change (from P2P or API)
value: |
event: bls_to_execution_change
data: {"message":{"validator_index":"1", "from_bls_pubkey":"0x933ad9491b62059dd065b560d256d8957a8c402cc6e8d8ee7290ae11e8f7329267a8811c397529dac52ae1342ba58c95", "to_execution_address":"0x9be8d619c56699667c1fedcd15f6b14d8B067f72"}, "signature":"0x1b66ac1fb663c9bc59509846d6ec05345bd908eda73e670af888da41af171505cc411d61252fb6cb3fa0017b679f8bb2305b26a285fa2737f175668d0dff91cc1b66ac1fb663c9bc59509846d6ec05345bd908eda73e670af888da41af171505"}
data: {"message":{"validator_index":"1", "from_bls_pubkey":"0x933ad9491b62059dd065b560d256d8957a8c402cc6e8d8ee7290ae11e8f7329267a8811c397529dac52ae1342ba58c95", "to_execution_address":"0x9Be8d619c56699667c1feDCD15f6b14D8B067F72"}, "signature":"0x1b66ac1fb663c9bc59509846d6ec05345bd908eda73e670af888da41af171505cc411d61252fb6cb3fa0017b679f8bb2305b26a285fa2737f175668d0dff91cc1b66ac1fb663c9bc59509846d6ec05345bd908eda73e670af888da41af171505"}
finalized_checkpoint:
description: Finalized checkpoint has been updated
value: |
Expand Down Expand Up @@ -150,5 +150,4 @@ get:
code: 400
message: "Invalid topic: weather_forecast"
"500":
$ref: '../../beacon-node-oapi.yaml#/components/responses/InternalError'

$ref: "../../beacon-node-oapi.yaml#/components/responses/InternalError"
7 changes: 3 additions & 4 deletions types/primitive.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,8 @@ Uint8:
ExecutionAddress:
type: string
format: hex
description: "An address on the execution (Ethereum 1) network."
example: "0xabcf8e0d4e9587369b2301d0790347320302cc09"
description: "An address on the execution (Ethereum 1) network. Should be output in EIP-55 mixed-case checksum address encoding."
example: "0xAbcF8e0d4e9587369b2301D0790347320302cc09"
pattern: "^0x[a-fA-F0-9]{40}$"

Transaction:
Expand Down Expand Up @@ -136,12 +136,11 @@ KZGCommitment:
type: string
format: hex
pattern: "^0x[a-fA-F0-9]{96}$"
description: "A G1 curve point. Same as BLS standard \"is valid pubkey\" check but also allows `0x00..00` for point-at-infinity"
description: 'A G1 curve point. Same as BLS standard "is valid pubkey" check but also allows `0x00..00` for point-at-infinity'
example: "0x93247f2209abcacf57b75a51dafae777f9dd38bc7053d1af526f220a7489a6d3a2753e5f3e8b1cfe39b56f43611df74a"

KZGProof:
type: string
format: hex
pattern: "^0x[a-fA-F0-9]{96}$"
description: "A G1 curve point. Used for verifying that the `KZGCommitment` for a given `Blob` is correct."

0 comments on commit a170227

Please sign in to comment.