You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: api/signer-api.yml
+34-14Lines changed: 34 additions & 14 deletions
Original file line number
Diff line number
Diff line change
@@ -10,6 +10,12 @@ paths:
10
10
/signer/v1/get_pubkeys:
11
11
get:
12
12
summary: Get a list of public keys for which signatures may be requested
13
+
description: >
14
+
This endpoint requires a valid JWT Bearer token.
15
+
16
+
The token **must include** the following claims:
17
+
- `exp` (integer): Expiration timestamp
18
+
- `module` (string): The ID of the module making the request, which must match a module ID in the Commit-Boost configuration file.
13
19
tags:
14
20
- Signer
15
21
security:
@@ -61,6 +67,13 @@ paths:
61
67
/signer/v1/request_signature/bls:
62
68
post:
63
69
summary: Request a signature for a 32-byte blob of data (typically a hash), signed by the BLS private key for the requested public key.
70
+
description: >
71
+
This endpoint requires a valid JWT Bearer token.
72
+
73
+
The token **must include** the following claims:
74
+
- `exp` (integer): Expiration timestamp
75
+
- `module` (string): The ID of the module making the request, which must match a module ID in the Commit-Boost configuration file.
76
+
- `payload_hash` (string): The Keccak-256 hash of the JSON-encoded request body, with optional `0x` prefix. This is required to prevent JWT replay attacks.
64
77
tags:
65
78
- Signer
66
79
security:
@@ -201,6 +214,13 @@ paths:
201
214
/signer/v1/request_signature/proxy-bls:
202
215
post:
203
216
summary: Request a signature for a 32-byte blob of data (typically a hash), signed by the BLS private key for the requested proxy public key.
217
+
description: >
218
+
This endpoint requires a valid JWT Bearer token.
219
+
220
+
The token **must include** the following claims:
221
+
- `exp` (integer): Expiration timestamp
222
+
- `module` (string): The ID of the module making the request, which must match a module ID in the Commit-Boost configuration file.
223
+
- `payload_hash` (string): The Keccak-256 hash of the JSON-encoded request body, with optional `0x` prefix. This is required to prevent JWT replay attacks.
204
224
tags:
205
225
- Signer
206
226
security:
@@ -341,6 +361,13 @@ paths:
341
361
/signer/v1/request_signature/proxy-ecdsa:
342
362
post:
343
363
summary: Request a signature for a 32-byte blob of data (typically a hash), signed by the ECDSA private key for the requested proxy Ethereum address.
364
+
description: >
365
+
This endpoint requires a valid JWT Bearer token.
366
+
367
+
The token **must include** the following claims:
368
+
- `exp` (integer): Expiration timestamp
369
+
- `module` (string): The ID of the module making the request, which must match a module ID in the Commit-Boost configuration file.
370
+
- `payload_hash` (string): The Keccak-256 hash of the JSON-encoded request body, with optional `0x` prefix. This is required to prevent JWT replay attacks.
344
371
tags:
345
372
- Signer
346
373
security:
@@ -481,6 +508,13 @@ paths:
481
508
/signer/v1/generate_proxy_key:
482
509
post:
483
510
summary: Request a proxy key be generated for a specific consensus pubkey
511
+
description: >
512
+
This endpoint requires a valid JWT Bearer token.
513
+
514
+
The token **must include** the following claims:
515
+
- `exp` (integer): Expiration timestamp
516
+
- `module` (string): The ID of the module making the request, which must match a module ID in the Commit-Boost configuration file.
517
+
- `payload_hash` (string): The Keccak-256 hash of the JSON-encoded request body, with optional `0x` prefix. This is required to prevent JWT replay attacks.
0 commit comments