Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 11 additions & 2 deletions signing/paths/public_keys.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,17 @@ get:
schema:
type: array
items:
type: string
example: '0x93247f2209abcacf57b75a51dafae777f9dd38bc7053d1af526f220a7489a6d3a2753e5f3e8b1cfe39b56f43611df74a'
oneOf:
- type: string
- type: object
properties:
pubkey:
type: string
relayer_signature:
type: boolean
example:
- pubkey: '0x93247f2209abcacf57b75a51dafae777f9dd38bc7053d1af526f220a7489a6d3a2753e5f3e8b1cfe39b56f43611df74a'
relayer_signature: true

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a breaking change, it should bump to a new version

'400':
description: 'Bad request format'
'500':
Expand Down
4 changes: 3 additions & 1 deletion signing/paths/sign.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@ post:
BLOCK_V2 (DENEB):
value:
type: "BLOCK_V2"
proofs:
- relayer_signature: "0x1b66ac1fb663c9bc59509846d6ec05345bd908eda73e670af888da41af171505cc411d61252fb6cb3fa0017b679f8bb2305b26a285fa2737f175668d0dff91cc1b66ac1fb663c9bc59509846d6ec05345bd908eda73e670af888da41af171505"

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change is additive but I am not sure if it deserves a new version. If we don't bump the version, the field has to be optional, and may not be present even if the web3signer requests it on the public_keys return

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

agree, optional, or new interface.

signingRoot: "0xaa2e0c465c1a45d7b6637fcce4ad6ceb71fc12064b548078d619a411f0de8adc"
fork_info:
fork:
Expand All @@ -65,7 +67,7 @@ post:
state_root: "0xfd18cf40cc907a739be483f1ca0ee23ad65cdd3df23205eabc6d660a75d1f54e"
body_root: "0xa759d8029a69d4fdd8b3996086e9722983977e4efc1f12f4098ea3d93e868a6b"
BLOCK_V2 (CAPELLA):
value:
value:
type: "BLOCK_V2"
signingRoot: "0xaa2e0c465c1a45d7b6637fcce4ad6ceb71fc12064b548078d619a411f0de8adc"
fork_info:
Expand Down
18 changes: 17 additions & 1 deletion signing/schemas.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,21 @@
components:
schemas:
Verifying:
type: "object"
properties:
proofs:
type: "array"
nullable: true
items:
type: "object"
properties:
relayer_signature:
type: "string"
nullable: true
description: Signature from Relayer
example: '0x1b66ac1fb663c9bc59509846d6ec05345bd908eda73e670af888da41af171505cc411d61252fb6cb3fa0017b679f8bb2305b26a285fa2737f175668d0dff91cc1b66ac1fb663c9bc59509846d6ec05345bd908eda73e670af888da41af171505'
required:
- relayer_signature
Signing:
type: "object"
properties:
Expand Down Expand Up @@ -472,6 +488,7 @@ components:
type: string
BeaconBlockSigning:
allOf:
- $ref: '#/components/schemas/Verifying'
- $ref: '#/components/schemas/Signing'
- $ref: '#/components/schemas/BeaconBlockRequest'
- type: object
Expand All @@ -480,7 +497,6 @@ components:
type: "string"
description: Signing Request type
example: 'BLOCK_V2'

BeaconBlockRequest:
type: object
properties:
Expand Down