forked from zama-ai/relayer-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathopenapi-async-design.yaml
More file actions
1483 lines (1453 loc) · 51.2 KB
/
openapi-async-design.yaml
File metadata and controls
1483 lines (1453 loc) · 51.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
openapi: 3.0.3
info:
title: FHEVM Relayer Async API
description: |
## Overview
Asynchronous API for FHEVM Relayer operations using POST + GET pattern.
1. Submit request via POST to get a UUID
2. Poll GET /{endpoint}/{uuid} for status and results
3. Status can be: `queued`, `completed`, or `failed`
4. Server controls retry timing - client respects `retry_after`
version: 2.0.0
servers:
- url: /v1
description: FHEVM Relayer API v1
paths:
/public-decrypt:
post:
summary: Public decryption request
description: Submit a request to decrypt ciphertext handles to plain text value. Returns immediately with a request ID.
operationId: submitPublicDecrypt
tags:
- Public Decrypt
security: [] # No authentication required - publicly accessible
parameters:
- name: X-Request-ID
in: header
required: false
description: Optional request identifier for tracing. Server generates UUID if not provided.
schema:
type: string
format: uuid
example: "123e4567-e89b-12d3-a456-426614174000"
requestBody:
required: true
content:
application/json:
schema:
$ref: "#/components/schemas/PublicDecryptRequestJson"
examples:
basic:
summary: Basic public decrypt request
value:
ciphertextHandles:
[
"bf9b45c007d626278570aa9622a9c8646f1bfd4e25a5401bd576d15e05320000",
]
extraData: "0x00"
responses:
"202":
description: Request accepted and queued for processing
headers:
X-Request-ID:
description: Request identifier echoed back from request header
schema:
type: string
format: uuid
example: "123e4567-e89b-12d3-a456-426614174000"
content:
application/json:
schema:
$ref: "#/components/schemas/AsyncResponse"
examples:
accepted:
summary: Request accepted
value:
id: "550e8400-e29b-41d4-a716-446655440000"
"400":
description: Invalid API version or malformed request
content:
application/json:
schema:
$ref: "#/components/schemas/BadRequestError"
examples:
invalid_version:
summary: Unsupported API version
value:
message: "Unsupported API version"
code: "MALFORMED_VALUE"
missing_handles:
summary: Missing ciphertext handles
value:
message: "Missing required field: ciphertextHandles"
code: "MISSING_FIELD"
missing_extra_data:
summary: Missing extraData field
value:
message: "Missing required field: extraData"
code: "MISSING_FIELD"
invalid_extra_data:
summary: Malformed extraData format
value:
message: "Invalid extraData format: must be hex string"
code: "MALFORMED_VALUE"
malformed_handle:
summary: Malformed ciphertext handle format
value:
message: "Invalid ciphertext handle format: must be valid hex string"
code: "MALFORMED_VALUE"
"403":
description: User not authorized to decrypt these ciphertexts
content:
application/json:
schema:
$ref: "#/components/schemas/ForbiddenError"
examples:
unauthorized:
summary: Unauthorized decryption
value:
message: "User not authorized to decrypt specified ciphertext handles"
code: "PERMISSION_DENIED"
"422":
description: Invalid ciphertext handles or cryptographic data
content:
application/json:
schema:
$ref: "#/components/schemas/UnprocessableEntityError"
examples:
invalid_handle:
summary: Invalid ciphertext handle
value:
message: "Ciphertext handle not found on Gateway"
code: "INVALID_VALUE"
"429":
description: Rate limit exceeded (errors don't count toward limit)
headers:
Retry-After:
description: Seconds to wait before retrying
schema:
type: integer
example: 15
content:
application/json:
schema:
$ref: "#/components/schemas/RateLimitErrorResponse"
examples:
rate_limit:
summary: Rate limit exceeded
value:
message: "Rate limit exceeded for decryption operations"
retry_after: 15
"500":
description: Internal server error
content:
application/json:
schema:
$ref: "#/components/schemas/InternalServerError"
examples:
gateway_failure:
summary: FHEVM gateway unavailable
value:
message: "Internal server error"
code: "SERVER_ERROR"
/public-decrypt/{id}:
get:
summary: Get public decryption result
description: Retrieve the status and result of a public decryption request
operationId: getPublicDecryptResult
tags:
- Public Decrypt
security: [] # No authentication required - publicly accessible
parameters:
- name: id
in: path
required: true
description: Request UUID returned from POST request
schema:
type: string
format: uuid
example: "550e8400-e29b-41d4-a716-446655440000"
- name: X-Request-ID
in: header
required: false
description: Optional request identifier for tracing. Server generates UUID if not provided.
schema:
type: string
format: uuid
example: "987fcdeb-51d2-43a1-b789-123456789abc"
responses:
"200":
description: Request completed successfully
headers:
X-Request-ID:
description: Request identifier echoed back from request header
schema:
type: string
format: uuid
example: "987fcdeb-51d2-43a1-b789-123456789abc"
content:
application/json:
schema:
allOf:
- $ref: "#/components/schemas/AsyncResult"
- type: object
properties:
result:
$ref: "#/components/schemas/PublicDecryptResponseJson"
examples:
completed:
summary: Successful completion
value:
status: "completed"
result:
response:
- decrypted_value: "01020304"
signatures: ["05060708", "090a0b0c"]
"202":
description: Request still in queue
headers:
X-Request-ID:
description: Request identifier echoed back from request header
schema:
type: string
format: uuid
example: "987fcdeb-51d2-43a1-b789-123456789abc"
content:
application/json:
schema:
$ref: "#/components/schemas/AsyncResult"
examples:
queued:
summary: Request queued
value:
status: "queued"
retry_after: 15
"400":
description: Malformed UUID format
headers:
X-Request-ID:
description: Request identifier echoed back from request header
schema:
type: string
format: uuid
example: "987fcdeb-51d2-43a1-b789-123456789abc"
content:
application/json:
schema:
$ref: "#/components/schemas/BadRequestError"
examples:
malformed_uuid:
summary: Malformed UUID
value:
message: "Invalid UUID format"
code: "MALFORMED_VALUE"
"422":
description: Request failed
headers:
X-Request-ID:
description: Request identifier echoed back from request header
schema:
type: string
format: uuid
example: "987fcdeb-51d2-43a1-b789-123456789abc"
content:
application/json:
schema:
$ref: "#/components/schemas/AsyncResult"
examples:
gateway_decryption_failed:
summary: Gateway decryption failed
value:
status: "failed"
error:
message: "Gateway returned empty decryption value"
code: "INVALID_VALUE_FROM_GATEWAY"
kms_signature_failed:
summary: KMS signature verification failed
value:
status: "failed"
error:
message: "KMS signature verification failed"
code: "KMS_SIGNATURE_VERIFICATION_FAILED"
gateway_timeout:
summary: Gateway processing timeout
value:
status: "failed"
error:
message: "Gateway processing timed out"
code: "INVALID_VALUE_FROM_GATEWAY"
"404":
description: Request ID not found
headers:
X-Request-ID:
description: Request identifier echoed back from request header
schema:
type: string
format: uuid
example: "987fcdeb-51d2-43a1-b789-123456789abc"
content:
application/json:
schema:
$ref: "#/components/schemas/NotFoundError"
examples:
not_found:
summary: Request ID not found
value:
message: "Request ID not found"
code: "MALFORMED_VALUE"
"500":
description: Internal server error
headers:
X-Request-ID:
description: Request identifier echoed back from request header
schema:
type: string
format: uuid
example: "987fcdeb-51d2-43a1-b789-123456789abc"
content:
application/json:
schema:
$ref: "#/components/schemas/InternalServerError"
examples:
server_error:
summary: Internal server error
value:
message: "Internal server error"
code: "SERVER_ERROR"
/user-decrypt:
post:
summary: Submit user decryption request
description: Submit a request to decrypt ciphertexts for encrypted with FHE Private Keys to ciphertexts encrypted with user provided public key. Returns immediately with a request ID.
operationId: submitUserDecrypt
tags:
- User Decrypt
security: [] # No authentication required - publicly accessible
parameters:
- name: X-Request-ID
in: header
required: false
description: Optional request identifier for tracing. Server generates UUID if not provided.
schema:
type: string
format: uuid
example: "123e4567-e89b-12d3-a456-426614174000"
requestBody:
required: true
content:
application/json:
schema:
$ref: "#/components/schemas/UserDecryptRequestJson"
examples:
basic:
summary: Basic user decrypt request
value:
handleContractPairs:
- handle: "0x123abc456"
contractAddress: "0xContract123"
requestValidity:
startTimestamp: "1703123456"
durationDays: "7"
contractsChainId: "8008"
contractAddresses: ["0xContract123"]
userAddress: "0xUser456"
signature: "0xSignature789"
publicKey: "0xPubKey012"
extraData: "0x00"
responses:
"202":
description: Request accepted and queued for processing
headers:
X-Request-ID:
description: Request identifier echoed back from request header
schema:
type: string
format: uuid
example: "987fcdeb-51d2-43a1-b789-123456789abc"
content:
application/json:
schema:
$ref: "#/components/schemas/AsyncResponse"
"400":
description: Invalid API version or malformed request
headers:
X-Request-ID:
description: Request identifier echoed back from request header
schema:
type: string
format: uuid
example: "987fcdeb-51d2-43a1-b789-123456789abc"
content:
application/json:
schema:
$ref: "#/components/schemas/BadRequestError"
examples:
invalid_version:
summary: Unsupported API version
value:
message: "Unsupported API version"
code: "MALFORMED_VALUE"
missing_signature:
summary: Missing user signature
value:
message: "Missing required field: signature"
code: "MISSING_FIELD"
missing_handle_pairs:
summary: Missing handle-contract pairs
value:
message: "Missing required field: handleContractPairs"
code: "MISSING_FIELD"
missing_user_address:
summary: Missing user address
value:
message: "Missing required field: userAddress"
code: "MISSING_FIELD"
missing_public_key:
summary: Missing public key
value:
message: "Missing required field: publicKey"
code: "MISSING_FIELD"
missing_extra_data:
summary: Missing extraData field
value:
message: "Missing required field: extraData"
code: "MISSING_FIELD"
invalid_extra_data:
summary: Malformed extraData format
value:
message: "Invalid extraData format: must be hex string"
code: "MALFORMED_VALUE"
invalid_signature_format:
summary: Malformed signature format
value:
message: "Invalid signature format: must be hex string"
code: "MALFORMED_VALUE"
invalid_public_key_format:
summary: Malformed public key format
value:
message: "Invalid publicKey format: must be hex string"
code: "MALFORMED_VALUE"
malformed_handle:
summary: Malformed ciphertext handle format
value:
message: "Invalid ciphertext handle format: must be valid hex string"
code: "MALFORMED_VALUE"
"403":
description: User not authorized to decrypt these ciphertexts
headers:
X-Request-ID:
description: Request identifier echoed back from request header
schema:
type: string
format: uuid
example: "987fcdeb-51d2-43a1-b789-123456789abc"
content:
application/json:
schema:
$ref: "#/components/schemas/ForbiddenError"
examples:
unauthorized_access:
summary: Unauthorized ciphertext access
value:
message: "User not authorized to access specified ciphertext handles"
code: "PERMISSION_DENIED"
"422":
description: Invalid signature or cryptographic data
headers:
X-Request-ID:
description: Request identifier echoed back from request header
schema:
type: string
format: uuid
example: "987fcdeb-51d2-43a1-b789-123456789abc"
content:
application/json:
schema:
$ref: "#/components/schemas/UnprocessableEntityError"
examples:
invalid_signature:
summary: Invalid user signature
value:
message: "Invalid user signature for decryption request"
code: "INVALID_VALUE"
invalid_handle:
summary: Invalid ciphertext handle
value:
message: "Ciphertext handle not found on Gateway"
code: "INVALID_VALUE"
invalid_contract:
summary: Invalid contract address
value:
message: "Contract address not found on specified chain"
code: "INVALID_VALUE"
expired_request_validity:
summary: Request validity expired
value:
message: "Request validity window has expired"
code: "INVALID_VALUE"
contract_not_authorized:
summary: Contract not authorized for ciphertext
value:
message: "Contract not authorized to access specified ciphertext handles"
code: "INVALID_VALUE"
unsupported_chain_id:
summary: Unsupported chain ID
value:
message: "Contract chain ID not supported"
code: "INVALID_VALUE"
"429":
description: Rate limit exceeded (errors don't count toward limit)
headers:
X-Request-ID:
description: Request identifier echoed back from request header
schema:
type: string
format: uuid
example: "987fcdeb-51d2-43a1-b789-123456789abc"
Retry-After:
description: Seconds to wait before retrying
schema:
type: integer
example: 20
content:
application/json:
schema:
$ref: "#/components/schemas/RateLimitErrorResponse"
examples:
rate_limit:
summary: Rate limit exceeded
value:
message: "Rate limit exceeded for user decryption operations"
retry_after: 20
"500":
description: Internal server error
headers:
X-Request-ID:
description: Request identifier echoed back from request header
schema:
type: string
format: uuid
example: "987fcdeb-51d2-43a1-b789-123456789abc"
content:
application/json:
schema:
$ref: "#/components/schemas/InternalServerError"
examples:
service_failure:
summary: Crypto service failure
value:
message: "Internal server error"
code: "SERVER_ERROR"
/user-decrypt/{id}:
get:
summary: Get user decryption result
description: Retrieve the status and result of a user decryption request
operationId: getUserDecryptResult
tags:
- User Decrypt
security: [] # No authentication required - publicly accessible
parameters:
- name: id
in: path
required: true
description: Request UUID returned from POST request
schema:
type: string
format: uuid
- name: X-Request-ID
in: header
required: false
description: Optional request identifier for tracing. Server generates UUID if not provided.
schema:
type: string
format: uuid
example: "123e4567-e89b-12d3-a456-426614174000"
responses:
"200":
description: Request completed successfully
headers:
X-Request-ID:
description: Request identifier echoed back from request header
schema:
type: string
format: uuid
example: "987fcdeb-51d2-43a1-b789-123456789abc"
content:
application/json:
schema:
allOf:
- $ref: "#/components/schemas/AsyncResult"
- type: object
properties:
result:
$ref: "#/components/schemas/UserDecryptResponseJson"
examples:
completed:
summary: Successful completion
value:
status: "completed"
result:
response:
- payload: "decrypted123456"
signature: "signature789012"
"202":
description: Request still in queue
headers:
X-Request-ID:
description: Request identifier echoed back from request header
schema:
type: string
format: uuid
example: "987fcdeb-51d2-43a1-b789-123456789abc"
content:
application/json:
schema:
$ref: "#/components/schemas/AsyncResult"
examples:
queued:
summary: Request queued
value:
status: "queued"
retry_after: 15
"400":
description: Malformed UUID format
headers:
X-Request-ID:
description: Request identifier echoed back from request header
schema:
type: string
format: uuid
example: "987fcdeb-51d2-43a1-b789-123456789abc"
content:
application/json:
schema:
$ref: "#/components/schemas/BadRequestError"
examples:
malformed_uuid:
summary: Malformed UUID
value:
message: "Invalid UUID format"
code: "MALFORMED_VALUE"
"422":
description: Request failed
headers:
X-Request-ID:
description: Request identifier echoed back from request header
schema:
type: string
format: uuid
example: "987fcdeb-51d2-43a1-b789-123456789abc"
content:
application/json:
schema:
$ref: "#/components/schemas/AsyncResult"
examples:
gateway_decryption_failed:
summary: Gateway decryption failed
value:
status: "failed"
error:
message: "Gateway returned empty decryption value"
code: "INVALID_VALUE_FROM_GATEWAY"
kms_signature_failed:
summary: KMS signature verification failed
value:
status: "failed"
error:
message: "KMS signature verification failed"
code: "KMS_SIGNATURE_VERIFICATION_FAILED"
gateway_timeout:
summary: Gateway processing timeout
value:
status: "failed"
error:
message: "Gateway processing timed out"
code: "INVALID_VALUE_FROM_GATEWAY"
"404":
description: Request ID not found
headers:
X-Request-ID:
description: Request identifier echoed back from request header
schema:
type: string
format: uuid
example: "987fcdeb-51d2-43a1-b789-123456789abc"
content:
application/json:
schema:
$ref: "#/components/schemas/NotFoundError"
examples:
not_found:
summary: Request ID not found
value:
message: "Request ID not found"
code: "MALFORMED_VALUE"
"500":
description: Internal server error
headers:
X-Request-ID:
description: Request identifier echoed back from request header
schema:
type: string
format: uuid
example: "987fcdeb-51d2-43a1-b789-123456789abc"
content:
application/json:
schema:
$ref: "#/components/schemas/InternalServerError"
examples:
server_error:
summary: Internal server error
value:
message: "Internal server error"
code: "SERVER_ERROR"
/input-proof:
post:
summary: Submit input proof verification request
description: Submit a request to verify input proof for ciphertext
operationId: submitInputProof
tags:
- Input Proof
security: [] # No authentication required - publicly accessible
parameters:
- name: X-Request-ID
in: header
required: false
description: Optional request identifier for tracing. Server generates UUID if not provided.
schema:
type: string
format: uuid
example: "123e4567-e89b-12d3-a456-426614174000"
requestBody:
required: true
content:
application/json:
schema:
$ref: "#/components/schemas/InputProofRequestJson"
examples:
basic:
summary: Basic input proof request
value:
contractChainId: "8008"
contractAddress: "0xContract789"
userAddress: "0xUser456"
ciphertextWithInputVerification: "abcdef123456789"
extraData: "0x00"
responses:
"202":
description: Request accepted and queued for processing
headers:
X-Request-ID:
description: Request identifier echoed back from request header
schema:
type: string
format: uuid
example: "987fcdeb-51d2-43a1-b789-123456789abc"
content:
application/json:
schema:
$ref: "#/components/schemas/AsyncResponse"
"400":
description: Invalid API version or malformed request
headers:
X-Request-ID:
description: Request identifier echoed back from request header
schema:
type: string
format: uuid
example: "987fcdeb-51d2-43a1-b789-123456789abc"
content:
application/json:
schema:
$ref: "#/components/schemas/BadRequestError"
examples:
invalid_version:
summary: Unsupported API version
value:
message: "Unsupported API version"
code: "MALFORMED_VALUE"
missing_chain_id:
summary: Missing contract chain ID
value:
message: "Missing required field: contractChainId"
code: "MISSING_FIELD"
missing_contract_address:
summary: Missing contract address
value:
message: "Missing required field: contractAddress"
code: "MISSING_FIELD"
missing_user_address:
summary: Missing user address
value:
message: "Missing required field: userAddress"
code: "MISSING_FIELD"
missing_verification:
summary: Missing input verification data
value:
message: "Missing required field: ciphertextWithInputVerification"
code: "MISSING_FIELD"
missing_extra_data:
summary: Missing extraData field
value:
message: "Missing required field: extraData"
code: "MISSING_FIELD"
invalid_extra_data:
summary: Malformed extraData format
value:
message: "Invalid extraData format: must be hex string"
code: "MALFORMED_VALUE"
invalid_contract_address_format:
summary: Malformed contract address format
value:
message: "Invalid contractAddress format: must be hex string"
code: "MALFORMED_VALUE"
invalid_user_address_format:
summary: Malformed user address format
value:
message: "Invalid userAddress format: must be hex string"
code: "MALFORMED_VALUE"
"422":
description: Invalid proof data or contract information
headers:
X-Request-ID:
description: Request identifier echoed back from request header
schema:
type: string
format: uuid
example: "987fcdeb-51d2-43a1-b789-123456789abc"
content:
application/json:
schema:
$ref: "#/components/schemas/UnprocessableEntityError"
examples:
invalid_proof:
summary: Invalid input proof
value:
message: "Input proof verification failed - malformed proof data"
code: "INVALID_VALUE"
invalid_chain:
summary: Invalid chain ID
value:
message: "Contract chain ID not supported"
code: "INVALID_VALUE"
invalid_contract_address:
summary: Invalid contract address
value:
message: "Contract address not found on specified chain"
code: "INVALID_VALUE"
"429":
description: Rate limit exceeded (errors don't count toward limit)
headers:
X-Request-ID:
description: Request identifier echoed back from request header
schema:
type: string
format: uuid
example: "987fcdeb-51d2-43a1-b789-123456789abc"
Retry-After:
description: Seconds to wait before retrying
schema:
type: integer
example: 12
content:
application/json:
schema:
$ref: "#/components/schemas/RateLimitErrorResponse"
examples:
rate_limit:
summary: Rate limit exceeded
value:
message: "Rate limit exceeded for proof verification operations"
retry_after: 12
"500":
description: Internal server error
headers:
X-Request-ID:
description: Request identifier echoed back from request header
schema:
type: string
format: uuid
example: "987fcdeb-51d2-43a1-b789-123456789abc"
content:
application/json:
schema:
$ref: "#/components/schemas/InternalServerError"
examples:
verification_service_failure:
summary: Proof verification service failure
value:
message: "Internal server error"
code: "SERVER_ERROR"
/input-proof/{id}:
get:
summary: Get input proof verification result
description: Retrieve the status and result of an input proof verification request
operationId: getInputProofResult
tags:
- Input Proof
security: [] # No authentication required - publicly accessible
parameters:
- name: id
in: path
required: true
description: Request UUID returned from POST request
schema:
type: string
format: uuid
- name: X-Request-ID
in: header
required: false
description: Optional request identifier for tracing. Server generates UUID if not provided.
schema:
type: string
format: uuid
example: "123e4567-e89b-12d3-a456-426614174000"
responses:
"200":
description: Request completed successfully
headers:
X-Request-ID:
description: Request identifier echoed back from request header
schema:
type: string
format: uuid
example: "987fcdeb-51d2-43a1-b789-123456789abc"
content:
application/json:
schema:
allOf:
- $ref: "#/components/schemas/AsyncResult"
- type: object
properties:
result:
$ref: "#/components/schemas/InputProofResponseJson"
examples:
completed:
summary: Successful completion
value:
status: "completed"
result:
response:
handles: ["0xhandle123", "0xhandle456"]
signatures: ["0xsig123", "0xsig456"]
"202":
description: Request still in queue
headers:
X-Request-ID:
description: Request identifier echoed back from request header
schema:
type: string
format: uuid
example: "987fcdeb-51d2-43a1-b789-123456789abc"
content:
application/json:
schema:
$ref: "#/components/schemas/AsyncResult"
examples:
queued:
summary: Request queued
value:
status: "queued"
retry_after: 15
"400":
description: Malformed UUID format
headers:
X-Request-ID:
description: Request identifier echoed back from request header
schema:
type: string
format: uuid
example: "987fcdeb-51d2-43a1-b789-123456789abc"
content:
application/json:
schema:
$ref: "#/components/schemas/BadRequestError"
examples:
malformed_uuid:
summary: Malformed UUID
value:
message: "Invalid UUID format"
code: "MALFORMED_VALUE"
"422":
description: Request failed
headers:
X-Request-ID:
description: Request identifier echoed back from request header
schema:
type: string
format: uuid
example: "987fcdeb-51d2-43a1-b789-123456789abc"
content:
application/json:
schema:
$ref: "#/components/schemas/AsyncResult"
examples:
proof_verification_failed:
summary: Proof verification failed
value:
status: "failed"
error:
message: "Input proof verification failed"
code: "INVALID_VALUE_FROM_GATEWAY"
coprocessor_signature_failed: