-
Notifications
You must be signed in to change notification settings - Fork 41
/
openapi.yaml
2139 lines (2077 loc) · 86.3 KB
/
openapi.yaml
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.1.1"
info:
# The protocol version is embedded in the code as constant in the
# `mithril-common/src/lib.rs` file. If you plan to update it
# here to reflect changes in the API, please also update the constant in the
# Rust file.
version: 0.1.37
title: Mithril Aggregator Server
description: |
The REST API provided by a Mithril Aggregator Node in a Mithril network.
You can play with it [here](https://mithril.network/openapi-ui/).
termsOfService: http://swagger.io/terms/
contact:
name: Mithril Team
url: https://github.com/input-output-hk/mithril
license:
name: BSD 3-Clause License
url: https://github.com/input-output-hk/mithril/blob/main/LICENSE
servers:
- url: https://aggregator.release-preprod.api.mithril.network/aggregator
- url: https://aggregator.pre-release-preview.api.mithril.network/aggregator
- url: https://aggregator.testing-preview.api.mithril.network/aggregator
- url: http://localhost:8080/aggregator
paths:
/:
get:
summary: Get public specifications about the aggregator
description: |
Returns the specifications related to the aggregator:
* Open API version
* URL of Mithril documentation
* Capabilities of the aggregator
* Cardano transactions prover capabilities
responses:
"200":
description: root found
content:
application/json:
schema:
$ref: "#/components/schemas/AggregatorFeaturesMessage"
"412":
description: API version mismatch
default:
description: root error
content:
application/json:
schema:
$ref: "#/components/schemas/Error"
/status:
get:
summary: Get information about the aggregator status
description: |
Returns the aggregator status information:
* Current epoch
* Current Cardano era
* Current Mithril era
* Cardano node version
* Aggregator node version
* Protocol parameters for current epoch
* Protocol parameters for next epoch
* Total number of signers for current epoch
* Total number of signers for next epoch
* Total stakes of signers for current epoch
* Total stakes of signers for next epoch
* Total of Cardano SPOs
* Total stakes in Cardano
responses:
"200":
description: aggregator status found
content:
application/json:
schema:
$ref: "#/components/schemas/AggregatorStatusMessage"
"412":
description: API version mismatch
default:
description: root error
content:
application/json:
schema:
$ref: "#/components/schemas/Error"
/epoch-settings:
get:
summary: Get current epoch settings
description: |
Returns the information related to the current epoch:
* protocol parameters for current epoch
* protocol parameters for next epoch (to setup cryptography, allowing signers to register)
* signers for current epoch
* signers for next epoch
* cardano transactions signing configuration for current epoch
* cardano transactions signing configuration for next epoch
responses:
"200":
description: epoch settings found
content:
application/json:
schema:
$ref: "#/components/schemas/EpochSettingsMessage"
"412":
description: API version mismatch
default:
description: epoch settings error
content:
application/json:
schema:
$ref: "#/components/schemas/Error"
/certificate-pending:
get:
summary: Get current pending certificate information
deprecated: true
description: |
Returns the information related to the current pending certificate:
* protocol parameters, for current and next epoch (to setup cryptography)
* beacon information (where on the chain the pending certificate should be triggered)
* entity type of the message that must be signed
* verification keys of the signers, for current and next epoch
responses:
"200":
description: pending certificate found
content:
application/json:
schema:
$ref: "#/components/schemas/CertificatePendingMessage"
"204":
description: no pending certificate available
"412":
description: API version mismatch
default:
description: pending certificate error
content:
application/json:
schema:
$ref: "#/components/schemas/Error"
/certificates:
get:
summary: Get most recent certificates
description: |
Returns the list of the most recent certificates
responses:
"200":
description: certificates found
content:
application/json:
schema:
$ref: "#/components/schemas/CertificateListMessage"
"412":
description: API version mismatch
default:
description: certificates retrieval error
content:
application/json:
schema:
$ref: "#/components/schemas/Error"
/certificate/{certificate_hash}:
get:
summary: Get certificate by hash
description: |
Returns the certificate identified by its hash
parameters:
- name: certificate_hash
in: path
description: Hash of the certificate to retrieve
required: true
schema:
type: string
format: bytes
examples: "7905e83ab5d7bc082c1bbc3033bfd19c539078830d19080d1f241c70aa532572"
responses:
"200":
description: certificate found
content:
application/json:
schema:
$ref: "#/components/schemas/CertificateMessage"
"404":
description: certificate not found
"412":
description: API version mismatch
default:
description: pending certificate error
content:
application/json:
schema:
$ref: "#/components/schemas/Error"
/artifact/snapshots:
get:
summary: Get most recent snapshots
description: |
Returns the list of the most recent snapshots
responses:
"200":
description: snapshots found
content:
application/json:
schema:
$ref: "#/components/schemas/SnapshotListMessage"
"412":
description: API version mismatch
default:
description: snapshots retrieval error
content:
application/json:
schema:
$ref: "#/components/schemas/Error"
/artifact/snapshot/{digest}:
get:
summary: Get snapshot information
description: |
Returns the information of a snapshot and where to retrieve its binary content
parameters:
- name: digest
in: path
description: Digest of the snapshot to retrieve
required: true
schema:
type: string
format: bytes
examples: "6367ee65d0d1272e6e70736a1ea2cae34015874517f6328364f6b73930966732"
responses:
"200":
description: snapshot found
content:
application/json:
schema:
$ref: "#/components/schemas/SnapshotMessage"
"404":
description: snapshot not found
"412":
description: API version mismatch
default:
description: snapshot retrieval error
content:
application/json:
schema:
$ref: "#/components/schemas/Error"
/artifact/snapshot/{digest}/download:
get:
summary: Download the snapshot
description: |
Returns the snapshot archive binary content
parameters:
- name: digest
in: path
description: Digest of the snapshot to download
required: true
schema:
type: string
format: bytes
examples: "6367ee65d0d1272e6e70736a1ea2cae34015874517f6328364f6b73930966732"
responses:
"200":
description: snapshot found
content:
application/gzip:
schema:
type: string
format: binary
"404":
description: snapshot not found
"412":
description: API version mismatch
default:
description: snapshot retrieval error
content:
application/json:
schema:
$ref: "#/components/schemas/Error"
/artifact/mithril-stake-distributions:
get:
summary: Get most recent Mithril stake distributions
description: |
Returns the list of the most recent Mithril stake distributions
responses:
"200":
description: Mithril stake distribution found
content:
application/json:
schema:
$ref: "#/components/schemas/MithrilStakeDistributionListMessage"
"412":
description: API version mismatch
default:
description: Mithril stake distribution retrieval error
content:
application/json:
schema:
$ref: "#/components/schemas/Error"
/artifact/mithril-stake-distribution/{hash}:
get:
summary: Get Mithril stake distribution information
description: |
Returns the information of a Mithril stake distribution
parameters:
- name: hash
in: path
description: Hash of the Mithril stake distribution to retrieve
required: true
schema:
type: string
format: bytes
examples: "6da2b104ed68481ef829d72d72c2f6a20142916d17985e01774b14ed49f0fea1"
responses:
"200":
description: Mithril stake distribution found
content:
application/json:
schema:
$ref: "#/components/schemas/MithrilStakeDistributionMessage"
"404":
description: Mithril stake distribution not found
"412":
description: API version mismatch
default:
description: Mithril stake distribution retrieval error
content:
application/json:
schema:
$ref: "#/components/schemas/Error"
/artifact/cardano-stake-distributions:
get:
summary: Get most recent Cardano stake distributions
description: |
Returns the list of the most recent Cardano stake distributions
responses:
"200":
description: Cardano stake distribution found
content:
application/json:
schema:
$ref: "#/components/schemas/CardanoStakeDistributionListMessage"
"412":
description: API version mismatch
default:
description: Cardano stake distribution retrieval error
content:
application/json:
schema:
$ref: "#/components/schemas/Error"
/artifact/cardano-stake-distribution/{hash}:
get:
summary: Get Cardano stake distribution information
description: |
Returns the information of a Cardano stake distribution
parameters:
- name: hash
in: path
description: Hash of the Cardano stake distribution to retrieve
required: true
schema:
type: string
format: bytes
examples: "6da2b104ed68481ef829d72d72c2f6a20142916d17985e01774b14ed49f0fea1"
responses:
"200":
description: Cardano stake distribution found
content:
application/json:
schema:
$ref: "#/components/schemas/CardanoStakeDistributionMessage"
"404":
description: Cardano stake distribution not found
"412":
description: API version mismatch
default:
description: Cardano stake distribution retrieval error
content:
application/json:
schema:
$ref: "#/components/schemas/Error"
/artifact/cardano-stake-distribution/epoch/{epoch}:
get:
summary: Get Cardano stake distribution information for a specific epoch
description: |
Returns the information of a Cardano stake distribution at a given epoch
parameters:
- name: epoch
in: path
description: Epoch of the Cardano stake distribution to retrieve
required: true
schema:
type: integer
format: int64
examples: 419
responses:
"200":
description: Cardano stake distribution found
content:
application/json:
schema:
$ref: "#/components/schemas/CardanoStakeDistributionMessage"
"404":
description: Cardano stake distribution not found
"412":
description: API version mismatch
default:
description: Cardano stake distribution retrieval error
content:
application/json:
schema:
$ref: "#/components/schemas/Error"
/artifact/cardano-transactions:
get:
summary: Get most recent Cardano transactions set snapshots
description: |
Returns the list of the most recent Cardano transactions set snapshots
responses:
"200":
description: Cardano transactions set snapshots found
content:
application/json:
schema:
$ref: "#/components/schemas/CardanoTransactionSnapshotListMessage"
"412":
description: API version mismatch
default:
description: Cardano transactions set snapshots retrieval error
content:
application/json:
schema:
$ref: "#/components/schemas/Error"
/artifact/cardano-transaction/{hash}:
get:
summary: Get Cardano transactions set snapshot information
description: |
Returns the information of a Cardano transactions set snapshot
parameters:
- name: hash
in: path
description: Hash of the Cardano transactions set snapshot to retrieve
required: true
schema:
type: string
format: bytes
examples: "6da2b104ed68481ef829d72d72c2f6a20142916d17985e01774b14ed49f0fea1"
responses:
"200":
description: Cardano transactions set snapshot found
content:
application/json:
schema:
$ref: "#/components/schemas/CardanoTransactionSnapshotMessage"
"404":
description: Cardano transactions set snapshot not found
"412":
description: API version mismatch
default:
description: Cardano transactions set snapshot retrieval error
content:
application/json:
schema:
$ref: "#/components/schemas/Error"
/proof/cardano-transaction:
get:
summary: Get the proofs of a Cardano transaction list
description: |
Returns the transaction hashes and the corresponding proofs
parameters:
- name: transaction_hashes
in: query
description: Hashes of the Cardano transactions to retrieve proofs for
required: true
schema:
type: array
items:
type: string
format: bytes
examples: "6dbb104ed68481ef829a26a20142916d17985e01774d72d72c2f"
explode: false
responses:
"200":
description: Cardano transaction proofs found
content:
application/json:
schema:
$ref: "#/components/schemas/CardanoTransactionProofMessage"
"404":
description: No Cardano transactions were ever signed
"412":
description: API version mismatch
default:
description: Cardano transaction proofs retrieval error
content:
application/json:
schema:
$ref: "#/components/schemas/Error"
/signers/registered/{epoch}:
get:
summary: Get registered signers for an epoch
description: |
Returns the signers that registered at a given Epoch
parameters:
- name: epoch
in: path
description: Cardano Epoch at which the signer registrations are registered
required: true
schema:
oneOf:
- description: Use the latest epoch
const: "latest"
- type: integer
format: int64
examples: 419
responses:
"200":
description: Registered Signers found
content:
application/json:
schema:
$ref: "#/components/schemas/SignerRegistrationsMessage"
"404":
description: Registered Signers not found
"412":
description: API version mismatch
default:
description: Registered Signers retrieval error
content:
application/json:
schema:
$ref: "#/components/schemas/Error"
/signers/tickers:
get:
summary: Get the signers known by the aggregator
description: |
Returns the signers party id and, if available, their pool ticker
responses:
"200":
description: Signers found
content:
application/json:
schema:
$ref: "#/components/schemas/SignersTickersMessage"
"412":
description: API version mismatch
default:
description: Signers retrieval error
content:
application/json:
schema:
$ref: "#/components/schemas/Error"
/register-signer:
post:
summary: Registers signer
description: |
Registers a signer for the next certificate production
requestBody:
description: Signer information to register
required: true
content:
application/json:
schema:
$ref: "#/components/schemas/RegisterSignerMessage"
responses:
"201":
description: signer registration succeeded
"400":
description: signer registration bad request
content:
application/json:
schema:
$ref: "#/components/schemas/Error"
"412":
description: API version mismatch
"503":
description: signer registration is unavailable
content:
application/json:
schema:
$ref: "#/components/schemas/Error"
default:
description: signer registration error
content:
application/json:
schema:
$ref: "#/components/schemas/Error"
/register-signatures:
post:
summary: Registers signatures
description: |
Registers the single signatures from a signer participant for the pending certificate
requestBody:
description: List of signatures
required: true
content:
application/json:
schema:
$ref: "#/components/schemas/RegisterSingleSignatureMessage"
responses:
"201":
description: signatures registration succeeded
"202":
description: signatures registration received and queued for later processing
"400":
description: signatures registration bad request
content:
application/json:
schema:
$ref: "#/components/schemas/Error"
"404":
description: open message not found
"410":
description: signatures registration done too late
"412":
description: API version mismatch
default:
description: signatures registration error
content:
application/json:
schema:
$ref: "#/components/schemas/Error"
/statistics/snapshot:
post:
summary: Records snapshot download event
description: Records snapshot download event
requestBody:
description: Downloaded snapshot message
required: true
content:
application/json:
schema:
$ref: "#/components/schemas/SnapshotDownloadMessage"
responses:
"201":
description: Event successfully recorded
"400":
description: Record event bad request
content:
application/json:
schema:
$ref: "#/components/schemas/Error"
"412":
description: API version mismatch
default:
description: Record event error
content:
application/json:
schema:
$ref: "#/components/schemas/Error"
components:
schemas:
AggregatorStatusMessage:
description: Represents the information related to the aggregator status
type: object
additionalProperties: false
required:
- epoch
- cardano_era
- mithril_era
- cardano_node_version
- aggregator_node_version
- protocol
- next_protocol
- total_signers
- total_next_signers
- total_stakes_signers
- total_next_stakes_signers
- total_cardano_spo
- total_cardano_stake
properties:
epoch:
$ref: "#/components/schemas/Epoch"
cardano_era:
description: Cardano era
type: string
mithril_era:
description: Mithril era
type: string
cardano_node_version:
description: Version of the Cardano node
type: string
aggregator_node_version:
description: Version of the Aggregator node
type: string
protocol:
$ref: "#/components/schemas/ProtocolParameters"
next_protocol:
$ref: "#/components/schemas/ProtocolParameters"
total_signers:
description: The number of signers for the current epoch
type: integer
format: int64
total_next_signers:
description: The number of signers that will be able to sign on the next epoch
type: integer
format: int64
total_stakes_signers:
description: The total stakes of signers for the current epoch
type: integer
format: int64
total_next_stakes_signers:
description: The total stakes of signers for the next epoch
type: integer
format: int64
total_cardano_spo:
description: The number of Cardano SPOs
type: integer
format: int64
total_cardano_stake:
description: The total stakes in Cardano
type: integer
format: int64
examples:
{
"epoch": 329,
"cardano_era": "Conway",
"mithril_era": "pythagoras",
"cardano_node_version": "1.2.3",
"aggregator_node_version": "4.5.6",
"protocol": { "k": 857, "m": 6172, "phi_f": 0.2 },
"next_protocol": { "k": 2422, "m": 20973, "phi_f": 0.2 },
"total_signers": 3,
"total_next_signers": 72,
"total_stakes_signers": 123456789,
"total_next_stakes_signers": 987654321,
"total_cardano_spo": 5738,
"total_cardano_stake": 999999999
}
AggregatorFeaturesMessage:
description: Represents general information about Aggregator public information and signing capabilities
type: object
additionalProperties: false
required:
- open_api_version
- documentation_url
- capabilities
properties:
open_api_version:
description: Open API version
type: string
format: byte
documentation_url:
description: Mithril documentation
type: string
format: byte
capabilities:
description: Capabilities of the aggregator
type: object
additionalProperties: false
required:
- signed_entity_types
properties:
signed_entity_types:
description: Signed entity types that are signed by the aggregator
type: array
minItems: 1
items:
description: Signed entity types that can be signed
type: string
enum:
- MithrilStakeDistribution
- CardanoStakeDistribution
- CardanoImmutableFilesFull
- CardanoTransactions
cardano_transactions_prover:
description: Cardano transactions prover capabilities
type: object
additionalProperties: false
required:
- max_hashes_allowed_by_request
properties:
max_hashes_allowed_by_request:
description: Maximum number of hashes allowed for a single request
type: integer
format: int64
cardano_transactions_signing_config:
description: |
Cardano transactions signing configuration
Mandatory if `signed_entity_types` contains `CardanoTransactions`.
type: object
additionalProperties: false
required:
- security_parameter
- step
properties:
security_parameter:
description: Number of blocks to discard from the tip of the chain when importing Cardano transactions
type: integer
format: int64
step:
description: Number of blocks between signature of Cardano transactions
type: integer
format: int64
examples:
{
"open_api_version": "0.1.17",
"documentation_url": "https://mithril.network",
"capabilities":
{
"signed_entity_types":
[
"MithrilStakeDistribution",
"CardanoImmutableFilesFull",
"CardanoTransactions"
],
"cardano_transactions_prover":
{ "max_hashes_allowed_by_request": 100 },
"cardano_transactions_signing_config":
{ "security_parameter": 100, "step": 10 }
}
}
Epoch:
description: Cardano chain epoch number
type: integer
format: int64
EpochSettingsMessage:
description: Epoch settings
type: object
additionalProperties: false
required:
- epoch
- current_signers
- next_signers
- signer_registration_protocol
properties:
epoch:
$ref: "#/components/schemas/Epoch"
protocol:
deprecated: true
allOf:
- $ref: "#/components/schemas/ProtocolParameters"
next_protocol:
deprecated: true
allOf:
- $ref: "#/components/schemas/ProtocolParameters"
signer_registration_protocol:
$ref: "#/components/schemas/ProtocolParameters"
current_signers:
type: array
items:
$ref: "#/components/schemas/Signer"
next_signers:
type: array
items:
$ref: "#/components/schemas/Signer"
cardano_transactions_signing_config:
$ref: "#/components/schemas/CardanoTransactionsSigningConfig"
next_cardano_transactions_signing_config:
$ref: "#/components/schemas/CardanoTransactionsSigningConfig"
examples:
{
"epoch": 329,
"protocol": { "k": 857, "m": 6172, "phi_f": 0.2 },
"next_protocol": { "k": 2422, "m": 20973, "phi_f": 0.2 },
"signer_registration_protocol": { "k": 9, "m": 77, "phi_f": 0.5 },
"current_signers":
[
{
"party_id": "1234567890",
"verification_key": "7b12766b223a5c342b39302c32392c39392c39382c3131313138342c32252c32352c31353",
"verification_key_signature": "7b5473693727369676d61223a7b227369676d6d61223a7b261223a9b227369676d61213a",
"operational_certificate": "5b73136372c38302c37342c3136362c313535b5b3232352c3230332c3235352c313030262c38322c39382c32c39332c3138342c3135362c3136362c32312c3131312c3232312c36332c3137372c3232332c3232332c31392c3537",
"kes_period": 123
},
{
"party_id": "2345678900",
"verification_key": "7b392c39392c13131312766b223a5c39382c313342b39302c252c32352c31353328342c32",
"verification_key_signature": "2c33302c3133312c3138322c34362c3133352c372c3139302c3235322c35352c32322c39",
"operational_certificate": "3231342c3137372c37312c3232352c3233332c3135335d2c322c3139322c5b3133352c34312c3230332c3131332c3c33352c3234302c3230392c312c32392c3233332c33342c3138382c3134312c3130342c3234382c3231392c3",
"kes_period": 456
}
],
"next_signers":
[
{
"party_id": "3456789000",
"verification_key": "7b22766b223a5b3133382c32392c3137332c3134342c36332c3233352c39372c3138302c3",
"verification_key_signature": "7b227369676d61223a7b227369676d61223a7b227369676d61223a7b227369676d612239",
"operational_certificate": "5b5b5b3232352c3230332c3235352c3130302c3136372c38302c37342c3136362c3135362c38322c39382c3232312c36332c3137372c3232332c3232332c31392c35372c39332c312c35302c3133392c3233342c3137332c32352",
"kes_period": 789
},
{
"party_id": "4567890000",
"verification_key": "34302c3132332c3139302c3134352c3132342c35342c3133302c37302c3136332c3139332",
"verification_key_signature": "302c3230312c38362c3139312c36302c3234352c3138332c3134342c3139392c3130335f",
"operational_certificate": "2c38382c3138372c3233332c34302c37322c31362c36365d2c312c3132332c5b31362c3136392c3134312c3138332c32322c3137342c3131312c33322c36342c35322c2c3232382c37392c3137352c32395312c3838282c323030",
"kes_period": 876
}
],
"cardano_transactions_signing_config":
{ "security_parameter": 100, "step": 10 },
"next_cardano_transactions_signing_config":
{ "security_parameter": 50, "step": 5 }
}
ProtocolParameters:
description: Protocol cryptographic parameters
type: object
additionalProperties: true
required:
- k
- m
- phi_f
properties:
k:
description: Quorum parameter
type: integer
format: int64
m:
description: Security parameter (number of lotteries)
type: integer
format: int64
phi_f:
description: f in phi(w) = 1 - (1 - f)^w, where w is the stake of a participant
type: number
format: double
examples: { "k": 857, "m": 6172, "phi_f": 0.2 }
CardanoTransactionsSigningConfig:
description: Cardano transactions signing configuration
type: object
additionalProperties: false
required:
- security_parameter
- step
properties:
security_parameter:
description: Number of blocks to discard from the tip of the chain when importing Cardano transactions
type: integer
format: int64
step:
description: Number of blocks between signature of Cardano transactions
type: integer
format: int64
examples: { "security_parameter": 100, "step": 10 }
CardanoDbBeacon:
description: A point in the Cardano chain at which a Mithril certificate of the Cardano Database should be produced
type: object
additionalProperties: true
required:
- epoch
- immutable_file_number
properties:
network:
deprecated: true
description: Cardano network
type: string
epoch:
$ref: "#/components/schemas/Epoch"
immutable_file_number:
description: Number of the last immutable file that should be included the snapshot
type: integer
format: int64
examples: { "epoch": 329, "immutable_file_number": 7060000 }
SignedEntityType:
description: Entity type of the message that is signed
type: object
additionalProperties: true
examples: { "MithrilStakeDistribution": 246 }
CertificatePendingMessage:
description: CertificatePendingMessage represents all the information related to the certificate currently expecting to receive quorum of single signatures
type: object
additionalProperties: false
required:
- epoch
- entity_type
- protocol
- next_protocol
- signers
- next_signers
properties:
epoch:
$ref: "#/components/schemas/Epoch"
beacon:
deprecated: true
allOf:
- $ref: "#/components/schemas/CardanoDbBeacon"
entity_type:
$ref: "#/components/schemas/SignedEntityType"
protocol:
deprecated: true
allOf: