Skip to content

Commit a28c2fc

Browse files
authored
Adding Fulu changes (#21)
* BlockRequestFulu and AggregateAndProofRequestFulu schema * Update examples * Fix URL in index.html for 1.2.0 and 1.3.0
1 parent 87a392d commit a28c2fc

File tree

4 files changed

+80
-1
lines changed

4 files changed

+80
-1
lines changed

index.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,8 @@
5454
// Begin Swagger UI call region
5555
const ui = SwaggerUIBundle({
5656
urls: [
57+
{ url: "https://github.com/ethereum/remote-signing-api/releases/download/v1.3.0/remote-signing-oapi.yaml", name: "v1.3.0" },
58+
{ url: "https://github.com/ethereum/remote-signing-api/releases/download/v1.2.0/remote-signing-oapi.yaml", name: "v1.2.0" },
5759
{ url: "https://github.com/ethereum/remote-signing-api/releases/download/v1.1.0/remote-signing-oapi.yaml", name: "v1.1.0" },
5860
{ url: "https://github.com/ethereum/remote-signing-api/releases/download/v1.0.0/remote-signing-oapi.yaml", name: "v1.0.0" },
5961
{ url: "./remote-signing-oapi.yaml", name: "dev" }

remote-signing-oapi.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ openapi: 3.0.3
22
info:
33
title: 'Remote Signing API'
44
description: 'Remote Signing API for communication between remote signers and Ethereum validator clients.'
5-
version: 'v1.2.0'
5+
version: 'v1.3.0'
66
contact:
77
name: Ethereum Github
88
url: https://github.com/ethereum/remote-signing-api/issues

signing/paths/sign.yaml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,24 @@ post:
4848
SYNC_COMMITTEE_CONTRIBUTION_AND_PROOF: '../schemas.yaml#/components/schemas/SyncCommitteeContributionAndProofSigning'
4949
VALIDATOR_REGISTRATION: '../schemas.yaml#/components/schemas/ValidatorRegistrationSigning'
5050
examples:
51+
BLOCK_V2 (FULU):
52+
value:
53+
type: "BLOCK_V2"
54+
signingRoot: "0xaa2e0c465c1a45d7b6637fcce4ad6ceb71fc12064b548078d619a411f0de8adc"
55+
fork_info:
56+
fork:
57+
previous_version: "0x00000001"
58+
current_version: "0x00000001"
59+
epoch: "1"
60+
genesis_validators_root: "0x04700007fabc8282644aed6d1c7c9e21d38a03a0c4ba193f3afe428824b3a673"
61+
beacon_block:
62+
version: "FULU"
63+
block_header:
64+
slot: "0"
65+
proposer_index: "4666673844721362956"
66+
parent_root: "0x367cbd40ac7318427aadb97345a91fa2e965daf3158d7f1846f1306305f41bef"
67+
state_root: "0xfd18cf40cc907a739be483f1ca0ee23ad65cdd3df23205eabc6d660a75d1f54e"
68+
body_root: "0xa759d8029a69d4fdd8b3996086e9722983977e4efc1f12f4098ea3d93e868a6b"
5169
BLOCK_V2 (ELECTRA):
5270
value:
5371
type: "BLOCK_V2"
@@ -495,6 +513,35 @@ post:
495513
genesis_validators_root: '0x04700007fabc8282644aed6d1c7c9e21d38a03a0c4ba193f3afe428824b3a673'
496514
aggregation_slot:
497515
slot: "119"
516+
AGGREGATE_AND_PROOF_V2 (FULU):
517+
value:
518+
type: "AGGREGATE_AND_PROOF_V2"
519+
signingRoot: "0x247535806f76143fe4798427b2a79b85340c1a029a9e08581995b60e4e45c9e0"
520+
fork_info:
521+
fork:
522+
previous_version: "0x00000001"
523+
current_version: "0x00000001"
524+
epoch: "1"
525+
genesis_validators_root: "0x04700007fabc8282644aed6d1c7c9e21d38a03a0c4ba193f3afe428824b3a673"
526+
aggregate_and_proof:
527+
version: "FULU"
528+
data:
529+
aggregator_index: "1"
530+
aggregate:
531+
aggregation_bits: "0x0000000000000000000000000000000000000000000101"
532+
data:
533+
slot: "0"
534+
index: "0"
535+
beacon_block_root: "0x100814c335d0ced5014cfa9d2e375e6d9b4e197381f8ce8af0473200fdc917fd"
536+
source:
537+
epoch: "0"
538+
root: "0x0000000000000000000000000000000000000000000000000000000000000000"
539+
target:
540+
epoch: "0"
541+
root: "0x100814c335d0ced5014cfa9d2e375e6d9b4e197381f8ce8af0473200fdc917fd"
542+
signature: "0xa627242e4a5853708f4ebf923960fb8192f93f2233cd347e05239d86dd9fb66b721ceec1baeae6647f498c9126074f1101a87854d674b6eebc220fd8c3d8405bdfd8e286b707975d9e00a56ec6cbbf762f23607d490f0bbb16c3e0e483d51875"
543+
committee_bits: "0x0000000000000001"
544+
selection_proof: "0xa63f73a03f1f42b1fd0a988b614d511eb346d0a91c809694ef76df5ae021f0f144d64e612d735bc8820950cf6f7f84cd0ae194bfe3d4242fe79688f83462e3f69d9d33de71aab0721b7dab9d6960875e5fdfd26b171a75fb51af822043820c47"
498545
AGGREGATE_AND_PROOF_V2 (ELECTRA):
499546
value:
500547
type: "AGGREGATE_AND_PROOF_V2"

signing/schemas.yaml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ components:
8888
- $ref: '#/components/schemas/AggregateAndProofRequestCapella'
8989
- $ref: '#/components/schemas/AggregateAndProofRequestDeneb'
9090
- $ref: '#/components/schemas/AggregateAndProofRequestElectra'
91+
- $ref: '#/components/schemas/AggregateAndProofRequestFulu'
9192
discriminator:
9293
propertyName: version
9394
mapping:
@@ -97,6 +98,7 @@ components:
9798
CAPELLA: '#/components/schemas/AggregateAndProofRequestCapella'
9899
DENEB: '#/components/schemas/AggregateAndProofRequestDeneb'
99100
ELECTRA: '#/components/schemas/AggregateAndProofRequestElectra'
101+
FULU: '#/components/schemas/AggregateAndProofRequestFulu'
100102
required:
101103
- aggregate_and_proof
102104
AggregateAndProofRequestPhase0:
@@ -177,6 +179,19 @@ components:
177179
required:
178180
- version
179181
- data
182+
AggregateAndProofRequestFulu:
183+
type: object
184+
properties:
185+
version:
186+
type: string
187+
enum:
188+
- FULU
189+
description: 'version to identify AggregateAndProof request type.'
190+
data:
191+
$ref: "#/components/schemas/AggregateAndProofElectra"
192+
required:
193+
- version
194+
- data
180195
AttestationSigning:
181196
allOf:
182197
- $ref: '#/components/schemas/Signing'
@@ -642,6 +657,7 @@ components:
642657
- $ref: '#/components/schemas/BlockRequestCapella'
643658
- $ref: '#/components/schemas/BlockRequestDeneb'
644659
- $ref: '#/components/schemas/BlockRequestElectra'
660+
- $ref: '#/components/schemas/BlockRequestFulu'
645661
discriminator:
646662
propertyName: version
647663
mapping:
@@ -651,6 +667,7 @@ components:
651667
CAPELLA: '#/components/schemas/BlockRequestCapella'
652668
DENEB: '#/components/schemas/BlockRequestDeneb'
653669
ELECTRA: '#/components/schemas/BlockRequestElectra'
670+
FULU: '#/components/schemas/BlockRequestFulu'
654671
required:
655672
- beacon_block
656673
BlockRequestPhase0:
@@ -731,6 +748,19 @@ components:
731748
required:
732749
- version
733750
- block_header
751+
BlockRequestFulu:
752+
type: object
753+
properties:
754+
version:
755+
type: string
756+
enum:
757+
- FULU
758+
description: 'version to identify block request type.'
759+
block_header:
760+
$ref: "#/components/schemas/BeaconBlockHeader"
761+
required:
762+
- version
763+
- block_header
734764
BeaconBlockAltair:
735765
type: "object"
736766
properties:

0 commit comments

Comments
 (0)