-
Notifications
You must be signed in to change notification settings - Fork 298
/
types.v1.rs
1671 lines (1671 loc) · 65.8 KB
/
types.v1.rs
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
#[derive(serde::Serialize, serde::Deserialize)]
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CanisterUpgradeOptions {
#[prost(bool, optional, tag = "1")]
pub skip_pre_upgrade: ::core::option::Option<bool>,
#[prost(enumeration = "WasmMemoryPersistence", optional, tag = "2")]
pub wasm_memory_persistence: ::core::option::Option<i32>,
}
#[derive(serde::Serialize, serde::Deserialize)]
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CanisterInstallModeV2 {
#[prost(
oneof = "canister_install_mode_v2::CanisterInstallModeV2",
tags = "1, 2"
)]
pub canister_install_mode_v2:
::core::option::Option<canister_install_mode_v2::CanisterInstallModeV2>,
}
/// Nested message and enum types in `CanisterInstallModeV2`.
pub mod canister_install_mode_v2 {
#[derive(serde::Serialize, serde::Deserialize)]
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum CanisterInstallModeV2 {
#[prost(enumeration = "super::CanisterInstallMode", tag = "1")]
Mode(i32),
#[prost(message, tag = "2")]
Mode2(super::CanisterUpgradeOptions),
}
}
#[derive(
serde::Serialize,
serde::Deserialize,
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration,
)]
#[repr(i32)]
pub enum CanisterInstallMode {
Unspecified = 0,
Install = 1,
Reinstall = 2,
Upgrade = 3,
}
impl CanisterInstallMode {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
CanisterInstallMode::Unspecified => "CANISTER_INSTALL_MODE_UNSPECIFIED",
CanisterInstallMode::Install => "CANISTER_INSTALL_MODE_INSTALL",
CanisterInstallMode::Reinstall => "CANISTER_INSTALL_MODE_REINSTALL",
CanisterInstallMode::Upgrade => "CANISTER_INSTALL_MODE_UPGRADE",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"CANISTER_INSTALL_MODE_UNSPECIFIED" => Some(Self::Unspecified),
"CANISTER_INSTALL_MODE_INSTALL" => Some(Self::Install),
"CANISTER_INSTALL_MODE_REINSTALL" => Some(Self::Reinstall),
"CANISTER_INSTALL_MODE_UPGRADE" => Some(Self::Upgrade),
_ => None,
}
}
}
#[derive(
serde::Serialize,
serde::Deserialize,
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration,
)]
#[repr(i32)]
pub enum WasmMemoryPersistence {
Unspecified = 0,
Keep = 1,
Replace = 2,
}
impl WasmMemoryPersistence {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
WasmMemoryPersistence::Unspecified => "WASM_MEMORY_PERSISTENCE_UNSPECIFIED",
WasmMemoryPersistence::Keep => "WASM_MEMORY_PERSISTENCE_KEEP",
WasmMemoryPersistence::Replace => "WASM_MEMORY_PERSISTENCE_REPLACE",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"WASM_MEMORY_PERSISTENCE_UNSPECIFIED" => Some(Self::Unspecified),
"WASM_MEMORY_PERSISTENCE_KEEP" => Some(Self::Keep),
"WASM_MEMORY_PERSISTENCE_REPLACE" => Some(Self::Replace),
_ => None,
}
}
}
#[derive(serde::Serialize, serde::Deserialize, Eq, Hash)]
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct PrincipalId {
#[prost(bytes = "vec", tag = "1")]
pub raw: ::prost::alloc::vec::Vec<u8>,
}
#[derive(serde::Serialize, serde::Deserialize)]
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CanisterId {
#[prost(message, optional, tag = "1")]
pub principal_id: ::core::option::Option<PrincipalId>,
}
#[derive(serde::Serialize, serde::Deserialize, Eq, Hash)]
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SubnetId {
#[prost(message, optional, tag = "1")]
pub principal_id: ::core::option::Option<PrincipalId>,
}
#[derive(serde::Serialize, serde::Deserialize)]
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct UserId {
#[prost(message, optional, tag = "1")]
pub principal_id: ::core::option::Option<PrincipalId>,
}
#[derive(serde::Serialize, serde::Deserialize)]
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct NodeId {
#[prost(message, optional, tag = "1")]
pub principal_id: ::core::option::Option<PrincipalId>,
}
/// A non-interactive distributed key generation (NI-DKG) ID.
#[derive(serde::Serialize, serde::Deserialize, Eq, Hash)]
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct NiDkgId {
#[prost(uint64, tag = "1")]
pub start_block_height: u64,
#[prost(bytes = "vec", tag = "2")]
pub dealer_subnet: ::prost::alloc::vec::Vec<u8>,
#[prost(enumeration = "NiDkgTag", tag = "4")]
pub dkg_tag: i32,
#[prost(message, optional, tag = "5")]
pub remote_target_id: ::core::option::Option<::prost::alloc::vec::Vec<u8>>,
}
#[derive(serde::Serialize, serde::Deserialize)]
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct NominalCycles {
#[prost(uint64, tag = "1")]
pub high: u64,
#[prost(uint64, tag = "2")]
pub low: u64,
}
/// A non-interactive distributed key generation (NI-DKG) tag.
#[derive(
serde::Serialize,
serde::Deserialize,
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration,
)]
#[repr(i32)]
pub enum NiDkgTag {
Unspecified = 0,
LowThreshold = 1,
HighThreshold = 2,
}
impl NiDkgTag {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
NiDkgTag::Unspecified => "NI_DKG_TAG_UNSPECIFIED",
NiDkgTag::LowThreshold => "NI_DKG_TAG_LOW_THRESHOLD",
NiDkgTag::HighThreshold => "NI_DKG_TAG_HIGH_THRESHOLD",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"NI_DKG_TAG_UNSPECIFIED" => Some(Self::Unspecified),
"NI_DKG_TAG_LOW_THRESHOLD" => Some(Self::LowThreshold),
"NI_DKG_TAG_HIGH_THRESHOLD" => Some(Self::HighThreshold),
_ => None,
}
}
}
#[derive(serde::Serialize, serde::Deserialize)]
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DkgMessage {
#[prost(message, optional, tag = "5")]
pub signer: ::core::option::Option<NodeId>,
#[prost(bytes = "vec", tag = "1")]
pub signature: ::prost::alloc::vec::Vec<u8>,
#[prost(string, tag = "2")]
pub replica_version: ::prost::alloc::string::String,
#[prost(message, optional, tag = "3")]
pub dkg_id: ::core::option::Option<NiDkgId>,
#[prost(bytes = "vec", tag = "4")]
pub dealing: ::prost::alloc::vec::Vec<u8>,
}
#[derive(serde::Serialize, serde::Deserialize)]
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DkgPayload {
#[prost(oneof = "dkg_payload::Val", tags = "1, 2")]
pub val: ::core::option::Option<dkg_payload::Val>,
}
/// Nested message and enum types in `DkgPayload`.
pub mod dkg_payload {
#[derive(serde::Serialize, serde::Deserialize)]
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum Val {
#[prost(message, tag = "1")]
Summary(super::Summary),
#[prost(message, tag = "2")]
Dealings(super::Dealings),
}
}
#[derive(serde::Serialize, serde::Deserialize)]
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Dealings {
#[prost(message, repeated, tag = "1")]
pub dealings: ::prost::alloc::vec::Vec<DkgMessage>,
#[prost(uint64, tag = "2")]
pub summary_height: u64,
}
#[derive(serde::Serialize, serde::Deserialize)]
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Summary {
#[prost(uint64, tag = "1")]
pub registry_version: u64,
#[prost(uint64, tag = "2")]
pub interval_length: u64,
#[prost(uint64, tag = "3")]
pub next_interval_length: u64,
#[prost(uint64, tag = "4")]
pub height: u64,
#[prost(message, repeated, tag = "5")]
pub current_transcripts: ::prost::alloc::vec::Vec<TaggedNiDkgTranscript>,
#[prost(message, repeated, tag = "6")]
pub next_transcripts: ::prost::alloc::vec::Vec<TaggedNiDkgTranscript>,
#[prost(message, repeated, tag = "7")]
pub configs: ::prost::alloc::vec::Vec<NiDkgConfig>,
#[prost(message, repeated, tag = "9")]
pub initial_dkg_attempts: ::prost::alloc::vec::Vec<InitialDkgAttemptCount>,
#[prost(message, repeated, tag = "10")]
pub transcripts_for_new_subnets_with_callback_ids:
::prost::alloc::vec::Vec<CallbackIdedNiDkgTranscript>,
}
#[derive(serde::Serialize, serde::Deserialize)]
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct TaggedNiDkgTranscript {
#[prost(message, optional, tag = "1")]
pub transcript: ::core::option::Option<NiDkgTranscript>,
#[prost(enumeration = "NiDkgTag", tag = "2")]
pub tag: i32,
}
#[derive(serde::Serialize, serde::Deserialize)]
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CallbackIdedNiDkgTranscript {
#[prost(message, optional, tag = "1")]
pub dkg_id: ::core::option::Option<NiDkgId>,
#[prost(message, optional, tag = "2")]
pub transcript_result: ::core::option::Option<NiDkgTranscriptResult>,
#[prost(uint64, tag = "3")]
pub callback_id: u64,
}
#[derive(serde::Serialize, serde::Deserialize)]
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct NiDkgTranscriptResult {
#[prost(oneof = "ni_dkg_transcript_result::Val", tags = "1, 2")]
pub val: ::core::option::Option<ni_dkg_transcript_result::Val>,
}
/// Nested message and enum types in `NiDkgTranscriptResult`.
pub mod ni_dkg_transcript_result {
#[derive(serde::Serialize, serde::Deserialize)]
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum Val {
#[prost(message, tag = "1")]
Transcript(super::NiDkgTranscript),
#[prost(bytes, tag = "2")]
ErrorString(::prost::alloc::vec::Vec<u8>),
}
}
/// A transcript for non-interactive Distributed Key Generation (NI-DKG).
#[derive(serde::Serialize, serde::Deserialize)]
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct NiDkgTranscript {
#[prost(message, optional, tag = "1")]
pub dkg_id: ::core::option::Option<NiDkgId>,
#[prost(uint32, tag = "2")]
pub threshold: u32,
#[prost(message, repeated, tag = "3")]
pub committee: ::prost::alloc::vec::Vec<NodeId>,
#[prost(uint64, tag = "4")]
pub registry_version: u64,
#[prost(bytes = "vec", tag = "5")]
pub internal_csp_transcript: ::prost::alloc::vec::Vec<u8>,
}
/// A configuration for non-interactive Distributed Key Generation (NI-DKG).
#[derive(serde::Serialize, serde::Deserialize)]
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct NiDkgConfig {
#[prost(message, optional, tag = "1")]
pub dkg_id: ::core::option::Option<NiDkgId>,
#[prost(uint32, tag = "2")]
pub max_corrupt_dealers: u32,
#[prost(message, repeated, tag = "3")]
pub dealers: ::prost::alloc::vec::Vec<NodeId>,
#[prost(uint32, tag = "4")]
pub max_corrupt_receivers: u32,
#[prost(message, repeated, tag = "5")]
pub receivers: ::prost::alloc::vec::Vec<NodeId>,
#[prost(uint32, tag = "6")]
pub threshold: u32,
#[prost(uint64, tag = "7")]
pub registry_version: u64,
#[prost(message, optional, tag = "8")]
pub resharing_transcript: ::core::option::Option<NiDkgTranscript>,
}
#[derive(serde::Serialize, serde::Deserialize)]
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct InitialDkgAttemptCount {
#[prost(bytes = "vec", tag = "1")]
pub target_id: ::prost::alloc::vec::Vec<u8>,
#[prost(uint32, tag = "2")]
pub attempt_no: u32,
}
#[derive(
serde::Serialize,
serde::Deserialize,
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration,
)]
#[repr(i32)]
pub enum RejectCode {
Unspecified = 0,
SysFatal = 1,
SysTransient = 2,
DestinationInvalid = 3,
CanisterReject = 4,
CanisterError = 5,
}
impl RejectCode {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
RejectCode::Unspecified => "REJECT_CODE_UNSPECIFIED",
RejectCode::SysFatal => "REJECT_CODE_SYS_FATAL",
RejectCode::SysTransient => "REJECT_CODE_SYS_TRANSIENT",
RejectCode::DestinationInvalid => "REJECT_CODE_DESTINATION_INVALID",
RejectCode::CanisterReject => "REJECT_CODE_CANISTER_REJECT",
RejectCode::CanisterError => "REJECT_CODE_CANISTER_ERROR",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"REJECT_CODE_UNSPECIFIED" => Some(Self::Unspecified),
"REJECT_CODE_SYS_FATAL" => Some(Self::SysFatal),
"REJECT_CODE_SYS_TRANSIENT" => Some(Self::SysTransient),
"REJECT_CODE_DESTINATION_INVALID" => Some(Self::DestinationInvalid),
"REJECT_CODE_CANISTER_REJECT" => Some(Self::CanisterReject),
"REJECT_CODE_CANISTER_ERROR" => Some(Self::CanisterError),
_ => None,
}
}
}
#[derive(serde::Serialize, serde::Deserialize)]
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct BasicSignature {
#[prost(bytes = "vec", tag = "1")]
pub signature: ::prost::alloc::vec::Vec<u8>,
#[prost(message, optional, tag = "2")]
pub signer: ::core::option::Option<NodeId>,
}
#[derive(serde::Serialize, serde::Deserialize)]
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ThresholdSignature {
#[prost(bytes = "vec", tag = "1")]
pub signature: ::prost::alloc::vec::Vec<u8>,
#[prost(message, optional, tag = "2")]
pub signer: ::core::option::Option<NiDkgId>,
}
#[derive(serde::Serialize, serde::Deserialize)]
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ThresholdSignatureShare {
#[prost(bytes = "vec", tag = "1")]
pub signature: ::prost::alloc::vec::Vec<u8>,
#[prost(message, optional, tag = "2")]
pub signer: ::core::option::Option<NodeId>,
}
#[derive(serde::Serialize, serde::Deserialize)]
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct EcdsaPayload {
#[prost(message, repeated, tag = "1")]
pub signature_agreements: ::prost::alloc::vec::Vec<CompletedSignature>,
#[prost(message, repeated, tag = "2")]
pub ongoing_signatures: ::prost::alloc::vec::Vec<OngoingSignature>,
#[prost(message, optional, tag = "5")]
pub next_unused_transcript_id:
::core::option::Option<super::super::registry::subnet::v1::IDkgTranscriptId>,
#[prost(message, repeated, tag = "6")]
pub idkg_transcripts:
::prost::alloc::vec::Vec<super::super::registry::subnet::v1::IDkgTranscript>,
#[prost(message, repeated, tag = "7")]
pub ongoing_xnet_reshares: ::prost::alloc::vec::Vec<OngoingXnetReshare>,
#[prost(message, repeated, tag = "8")]
pub xnet_reshare_agreements: ::prost::alloc::vec::Vec<XnetReshareAgreement>,
#[prost(uint64, tag = "10")]
pub next_unused_quadruple_id: u64,
#[prost(message, repeated, tag = "13")]
pub key_transcripts: ::prost::alloc::vec::Vec<EcdsaKeyTranscript>,
#[prost(message, repeated, tag = "14")]
pub available_pre_signatures: ::prost::alloc::vec::Vec<AvailablePreSignature>,
#[prost(message, repeated, tag = "15")]
pub pre_signatures_in_creation: ::prost::alloc::vec::Vec<PreSignatureInProgress>,
/// TODO: retire these fields, once we start using `key_transcripts`.
#[prost(message, optional, tag = "9")]
pub current_key_transcript: ::core::option::Option<UnmaskedTranscriptWithAttributes>,
#[prost(message, optional, tag = "11")]
pub next_key_in_creation: ::core::option::Option<KeyTranscriptCreation>,
#[prost(message, optional, tag = "12")]
pub key_id: ::core::option::Option<super::super::registry::crypto::v1::EcdsaKeyId>,
/// TODO: retire these fields, once we start using `pre_signatures`.
#[prost(message, repeated, tag = "3")]
pub available_quadruples: ::prost::alloc::vec::Vec<AvailableQuadruple>,
#[prost(message, repeated, tag = "4")]
pub quadruples_in_creation: ::prost::alloc::vec::Vec<QuadrupleInProgress>,
}
#[derive(serde::Serialize, serde::Deserialize)]
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ConsensusResponse {
#[prost(uint64, tag = "3")]
pub callback: u64,
#[prost(oneof = "consensus_response::Payload", tags = "5, 6")]
pub payload: ::core::option::Option<consensus_response::Payload>,
}
/// Nested message and enum types in `ConsensusResponse`.
pub mod consensus_response {
#[derive(serde::Serialize, serde::Deserialize)]
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum Payload {
#[prost(bytes, tag = "5")]
Data(::prost::alloc::vec::Vec<u8>),
#[prost(message, tag = "6")]
Reject(super::super::super::state::queues::v1::RejectContext),
}
}
#[derive(serde::Serialize, serde::Deserialize)]
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct EcdsaKeyTranscript {
#[prost(message, optional, tag = "1")]
pub key_id: ::core::option::Option<super::super::registry::crypto::v1::EcdsaKeyId>,
#[prost(message, optional, tag = "2")]
pub current: ::core::option::Option<UnmaskedTranscriptWithAttributes>,
#[prost(message, optional, tag = "3")]
pub next_in_creation: ::core::option::Option<KeyTranscriptCreation>,
#[prost(message, optional, tag = "4")]
pub master_key_id:
::core::option::Option<super::super::registry::crypto::v1::MasterPublicKeyId>,
}
#[derive(serde::Serialize, serde::Deserialize)]
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct OngoingSignature {
#[prost(message, optional, tag = "1")]
pub request_id: ::core::option::Option<RequestId>,
#[prost(message, optional, tag = "2")]
pub sig_inputs: ::core::option::Option<ThresholdEcdsaSigInputsRef>,
}
#[derive(serde::Serialize, serde::Deserialize)]
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AvailableQuadruple {
#[prost(uint64, tag = "1")]
pub quadruple_id: u64,
#[prost(message, optional, tag = "2")]
pub quadruple: ::core::option::Option<PreSignatureQuadrupleRef>,
}
#[derive(serde::Serialize, serde::Deserialize)]
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct QuadrupleInProgress {
#[prost(uint64, tag = "1")]
pub quadruple_id: u64,
#[prost(message, optional, tag = "2")]
pub quadruple: ::core::option::Option<QuadrupleInCreation>,
}
#[derive(serde::Serialize, serde::Deserialize)]
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AvailablePreSignature {
#[prost(uint64, tag = "1")]
pub pre_signature_id: u64,
#[prost(message, optional, tag = "2")]
pub pre_signature: ::core::option::Option<PreSignatureRef>,
}
#[derive(serde::Serialize, serde::Deserialize)]
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct PreSignatureInProgress {
#[prost(uint64, tag = "1")]
pub pre_signature_id: u64,
#[prost(message, optional, tag = "2")]
pub pre_signature: ::core::option::Option<PreSignatureInCreation>,
}
#[derive(serde::Serialize, serde::Deserialize)]
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct OngoingXnetReshare {
#[prost(message, optional, tag = "1")]
pub request: ::core::option::Option<EcdsaReshareRequest>,
#[prost(message, optional, tag = "2")]
pub transcript: ::core::option::Option<ReshareOfUnmaskedParams>,
}
#[derive(serde::Serialize, serde::Deserialize)]
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct XnetReshareAgreement {
#[prost(message, optional, tag = "1")]
pub request: ::core::option::Option<EcdsaReshareRequest>,
#[prost(message, optional, tag = "4")]
pub initial_dealings: ::core::option::Option<ConsensusResponse>,
}
#[derive(serde::Serialize, serde::Deserialize)]
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct RequestId {
#[prost(bytes = "vec", tag = "1")]
pub pseudo_random_id: ::prost::alloc::vec::Vec<u8>,
#[prost(uint64, tag = "2")]
pub quadruple_id: u64,
#[prost(uint64, tag = "3")]
pub height: u64,
}
#[derive(serde::Serialize, serde::Deserialize)]
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct TranscriptRef {
#[prost(uint64, tag = "1")]
pub height: u64,
#[prost(message, optional, tag = "2")]
pub transcript_id: ::core::option::Option<super::super::registry::subnet::v1::IDkgTranscriptId>,
}
#[derive(serde::Serialize, serde::Deserialize)]
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct MaskedTranscript {
#[prost(message, optional, tag = "1")]
pub transcript_ref: ::core::option::Option<TranscriptRef>,
}
#[derive(serde::Serialize, serde::Deserialize)]
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct UnmaskedTranscript {
#[prost(message, optional, tag = "1")]
pub transcript_ref: ::core::option::Option<TranscriptRef>,
}
#[derive(serde::Serialize, serde::Deserialize)]
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct UnmaskedTranscriptWithAttributes {
#[prost(message, optional, tag = "1")]
pub transcript_ref: ::core::option::Option<TranscriptRef>,
#[prost(message, optional, tag = "2")]
pub attributes: ::core::option::Option<IDkgTranscriptAttributes>,
}
#[derive(serde::Serialize, serde::Deserialize)]
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct IDkgTranscriptOperationRef {
#[prost(int32, tag = "1")]
pub op_type: i32,
#[prost(message, optional, tag = "2")]
pub masked: ::core::option::Option<MaskedTranscript>,
#[prost(message, optional, tag = "3")]
pub unmasked: ::core::option::Option<UnmaskedTranscript>,
}
#[derive(serde::Serialize, serde::Deserialize)]
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct IDkgTranscriptAttributes {
#[prost(message, repeated, tag = "1")]
pub receivers: ::prost::alloc::vec::Vec<NodeId>,
#[prost(int32, tag = "2")]
pub algorithm_id: i32,
#[prost(uint64, tag = "3")]
pub registry_version: u64,
}
#[derive(serde::Serialize, serde::Deserialize)]
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct IDkgTranscriptParamsRef {
#[prost(message, optional, tag = "1")]
pub transcript_id: ::core::option::Option<super::super::registry::subnet::v1::IDkgTranscriptId>,
#[prost(message, repeated, tag = "2")]
pub dealers: ::prost::alloc::vec::Vec<NodeId>,
#[prost(message, repeated, tag = "3")]
pub receivers: ::prost::alloc::vec::Vec<NodeId>,
#[prost(uint64, tag = "4")]
pub registry_version: u64,
#[prost(int32, tag = "5")]
pub algorithm_id: i32,
#[prost(message, optional, tag = "6")]
pub operation_type_ref: ::core::option::Option<IDkgTranscriptOperationRef>,
}
#[derive(serde::Serialize, serde::Deserialize)]
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct RandomTranscriptParams {
#[prost(message, optional, tag = "1")]
pub transcript_ref: ::core::option::Option<IDkgTranscriptParamsRef>,
}
#[derive(serde::Serialize, serde::Deserialize)]
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct RandomUnmaskedTranscriptParams {
#[prost(message, optional, tag = "1")]
pub transcript_ref: ::core::option::Option<IDkgTranscriptParamsRef>,
}
#[derive(serde::Serialize, serde::Deserialize)]
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ReshareOfMaskedParams {
#[prost(message, optional, tag = "1")]
pub transcript_ref: ::core::option::Option<IDkgTranscriptParamsRef>,
}
#[derive(serde::Serialize, serde::Deserialize)]
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ReshareOfUnmaskedParams {
#[prost(message, optional, tag = "1")]
pub transcript_ref: ::core::option::Option<IDkgTranscriptParamsRef>,
}
#[derive(serde::Serialize, serde::Deserialize)]
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct UnmaskedTimesMaskedParams {
#[prost(message, optional, tag = "1")]
pub transcript_ref: ::core::option::Option<IDkgTranscriptParamsRef>,
}
#[derive(serde::Serialize, serde::Deserialize)]
#[allow(clippy::large_enum_variant)]
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct PreSignatureInCreation {
#[prost(oneof = "pre_signature_in_creation::Msg", tags = "1, 2")]
pub msg: ::core::option::Option<pre_signature_in_creation::Msg>,
}
/// Nested message and enum types in `PreSignatureInCreation`.
pub mod pre_signature_in_creation {
#[derive(serde::Serialize, serde::Deserialize)]
#[allow(clippy::large_enum_variant)]
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum Msg {
#[prost(message, tag = "1")]
Ecdsa(super::QuadrupleInCreation),
#[prost(message, tag = "2")]
Schnorr(super::TranscriptInCreation),
}
}
#[derive(serde::Serialize, serde::Deserialize)]
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct PreSignatureRef {
#[prost(oneof = "pre_signature_ref::Msg", tags = "1, 2")]
pub msg: ::core::option::Option<pre_signature_ref::Msg>,
}
/// Nested message and enum types in `PreSignatureRef`.
pub mod pre_signature_ref {
#[derive(serde::Serialize, serde::Deserialize)]
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum Msg {
#[prost(message, tag = "1")]
Ecdsa(super::PreSignatureQuadrupleRef),
#[prost(message, tag = "2")]
Schnorr(super::PreSignatureTranscriptRef),
}
}
#[derive(serde::Serialize, serde::Deserialize)]
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct QuadrupleInCreation {
#[prost(message, optional, tag = "1")]
pub kappa_masked_config: ::core::option::Option<RandomTranscriptParams>,
#[prost(message, optional, tag = "2")]
pub kappa_masked: ::core::option::Option<MaskedTranscript>,
#[prost(message, optional, tag = "3")]
pub lambda_config: ::core::option::Option<RandomTranscriptParams>,
#[prost(message, optional, tag = "4")]
pub lambda_masked: ::core::option::Option<MaskedTranscript>,
#[prost(message, optional, tag = "11")]
pub kappa_unmasked_config: ::core::option::Option<RandomUnmaskedTranscriptParams>,
#[prost(message, optional, tag = "5")]
pub unmask_kappa_config: ::core::option::Option<ReshareOfMaskedParams>,
#[prost(message, optional, tag = "6")]
pub kappa_unmasked: ::core::option::Option<UnmaskedTranscript>,
#[prost(message, optional, tag = "7")]
pub key_times_lambda_config: ::core::option::Option<UnmaskedTimesMaskedParams>,
#[prost(message, optional, tag = "8")]
pub key_times_lambda: ::core::option::Option<MaskedTranscript>,
#[prost(message, optional, tag = "9")]
pub kappa_times_lambda_config: ::core::option::Option<UnmaskedTimesMaskedParams>,
#[prost(message, optional, tag = "10")]
pub kappa_times_lambda: ::core::option::Option<MaskedTranscript>,
#[prost(message, optional, tag = "12")]
pub key_id: ::core::option::Option<super::super::registry::crypto::v1::EcdsaKeyId>,
}
#[derive(serde::Serialize, serde::Deserialize)]
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct PreSignatureQuadrupleRef {
#[prost(message, optional, tag = "1")]
pub kappa_unmasked_ref: ::core::option::Option<UnmaskedTranscript>,
#[prost(message, optional, tag = "2")]
pub lambda_masked_ref: ::core::option::Option<MaskedTranscript>,
#[prost(message, optional, tag = "3")]
pub kappa_times_lambda_ref: ::core::option::Option<MaskedTranscript>,
#[prost(message, optional, tag = "4")]
pub key_times_lambda_ref: ::core::option::Option<MaskedTranscript>,
#[prost(message, optional, tag = "5")]
pub key_unmasked_ref: ::core::option::Option<UnmaskedTranscript>,
#[prost(message, optional, tag = "6")]
pub key_id: ::core::option::Option<super::super::registry::crypto::v1::EcdsaKeyId>,
}
#[derive(serde::Serialize, serde::Deserialize)]
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ThresholdEcdsaSigInputsRef {
#[prost(message, optional, tag = "1")]
pub derivation_path:
::core::option::Option<super::super::registry::subnet::v1::ExtendedDerivationPath>,
#[prost(bytes = "vec", tag = "2")]
pub hashed_message: ::prost::alloc::vec::Vec<u8>,
#[prost(bytes = "vec", tag = "3")]
pub nonce: ::prost::alloc::vec::Vec<u8>,
#[prost(message, optional, tag = "4")]
pub presig_quadruple_ref: ::core::option::Option<PreSignatureQuadrupleRef>,
#[prost(message, optional, tag = "5")]
pub key_transcript_ref: ::core::option::Option<UnmaskedTranscript>,
}
#[derive(serde::Serialize, serde::Deserialize)]
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct TranscriptInCreation {
#[prost(message, optional, tag = "1")]
pub key_id: ::core::option::Option<super::super::registry::crypto::v1::SchnorrKeyId>,
#[prost(message, optional, tag = "2")]
pub blinder_unmasked_config: ::core::option::Option<RandomUnmaskedTranscriptParams>,
#[prost(message, optional, tag = "3")]
pub blinder_unmasked: ::core::option::Option<UnmaskedTranscript>,
}
#[derive(serde::Serialize, serde::Deserialize)]
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct PreSignatureTranscriptRef {
#[prost(message, optional, tag = "1")]
pub key_id: ::core::option::Option<super::super::registry::crypto::v1::SchnorrKeyId>,
#[prost(message, optional, tag = "2")]
pub blinder_unmasked_ref: ::core::option::Option<UnmaskedTranscript>,
#[prost(message, optional, tag = "3")]
pub key_unmasked_ref: ::core::option::Option<UnmaskedTranscript>,
}
#[derive(serde::Serialize, serde::Deserialize)]
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CompletedSignature {
#[prost(message, optional, tag = "3")]
pub unreported: ::core::option::Option<ConsensusResponse>,
#[prost(bytes = "vec", tag = "4")]
pub pseudo_random_id: ::prost::alloc::vec::Vec<u8>,
}
#[derive(serde::Serialize, serde::Deserialize)]
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct EcdsaReshareRequest {
#[prost(message, repeated, tag = "2")]
pub receiving_node_ids: ::prost::alloc::vec::Vec<NodeId>,
#[prost(uint64, tag = "3")]
pub registry_version: u64,
#[prost(message, optional, tag = "4")]
pub key_id: ::core::option::Option<super::super::registry::crypto::v1::EcdsaKeyId>,
#[prost(message, optional, tag = "5")]
pub master_key_id:
::core::option::Option<super::super::registry::crypto::v1::MasterPublicKeyId>,
}
#[derive(serde::Serialize, serde::Deserialize)]
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct KeyTranscriptCreation {
#[prost(enumeration = "KeyTranscriptCreationState", tag = "1")]
pub state: i32,
#[prost(message, optional, tag = "2")]
pub random: ::core::option::Option<RandomTranscriptParams>,
#[prost(message, optional, tag = "3")]
pub reshare_of_masked: ::core::option::Option<ReshareOfMaskedParams>,
#[prost(message, optional, tag = "4")]
pub reshare_of_unmasked: ::core::option::Option<ReshareOfUnmaskedParams>,
#[prost(message, optional, tag = "5")]
pub xnet_reshare_of_unmasked: ::core::option::Option<ReshareOfUnmaskedParams>,
#[prost(message, optional, tag = "6")]
pub xnet_reshare_initial_dealings:
::core::option::Option<super::super::registry::subnet::v1::InitialIDkgDealings>,
#[prost(message, optional, tag = "9")]
pub created: ::core::option::Option<UnmaskedTranscript>,
}
#[derive(serde::Serialize, serde::Deserialize)]
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct EcdsaMessage {
#[prost(oneof = "ecdsa_message::Msg", tags = "1, 2, 3, 4, 5")]
pub msg: ::core::option::Option<ecdsa_message::Msg>,
}
/// Nested message and enum types in `EcdsaMessage`.
pub mod ecdsa_message {
#[derive(serde::Serialize, serde::Deserialize)]
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum Msg {
#[prost(message, tag = "1")]
SignedDealing(super::super::super::registry::subnet::v1::IDkgSignedDealingTuple),
#[prost(message, tag = "2")]
DealingSupport(super::IDkgDealingSupport),
#[prost(message, tag = "3")]
SigShare(super::EcdsaSigShare),
#[prost(message, tag = "4")]
Complaint(super::EcdsaComplaint),
#[prost(message, tag = "5")]
Opening(super::EcdsaOpening),
}
}
#[derive(serde::Serialize, serde::Deserialize)]
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct EcdsaSigShare {
#[prost(message, optional, tag = "1")]
pub signer_id: ::core::option::Option<NodeId>,
#[prost(message, optional, tag = "2")]
pub request_id: ::core::option::Option<RequestId>,
#[prost(bytes = "vec", tag = "3")]
pub sig_share_raw: ::prost::alloc::vec::Vec<u8>,
}
#[derive(serde::Serialize, serde::Deserialize)]
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct EcdsaComplaint {
#[prost(message, optional, tag = "1")]
pub content: ::core::option::Option<EcdsaComplaintContent>,
#[prost(message, optional, tag = "2")]
pub signature: ::core::option::Option<BasicSignature>,
}
#[derive(serde::Serialize, serde::Deserialize)]
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct EcdsaComplaintContent {
#[prost(message, optional, tag = "1")]
pub idkg_complaint: ::core::option::Option<super::super::registry::subnet::v1::IDkgComplaint>,
}
#[derive(serde::Serialize, serde::Deserialize)]
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct EcdsaOpening {
#[prost(message, optional, tag = "1")]
pub content: ::core::option::Option<EcdsaOpeningContent>,
#[prost(message, optional, tag = "2")]
pub signature: ::core::option::Option<BasicSignature>,
}
#[derive(serde::Serialize, serde::Deserialize)]
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct EcdsaOpeningContent {
#[prost(message, optional, tag = "1")]
pub idkg_opening: ::core::option::Option<super::super::registry::subnet::v1::IDkgOpening>,
}
#[derive(serde::Serialize, serde::Deserialize)]
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct IDkgDealingSupport {
#[prost(message, optional, tag = "1")]
pub transcript_id: ::core::option::Option<super::super::registry::subnet::v1::IDkgTranscriptId>,
#[prost(message, optional, tag = "2")]
pub dealer: ::core::option::Option<NodeId>,
#[prost(bytes = "vec", tag = "3")]
pub dealing_hash: ::prost::alloc::vec::Vec<u8>,
#[prost(message, optional, tag = "4")]
pub sig_share: ::core::option::Option<BasicSignature>,
}
#[derive(serde::Serialize, serde::Deserialize)]
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct EcdsaPrefix {
#[prost(uint64, tag = "1")]
pub group_tag: u64,
#[prost(uint64, tag = "2")]
pub meta_hash: u64,
}
#[derive(serde::Serialize, serde::Deserialize)]
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct PrefixHashPair {
#[prost(message, optional, tag = "1")]
pub prefix: ::core::option::Option<EcdsaPrefix>,
#[prost(bytes = "vec", tag = "2")]
pub hash: ::prost::alloc::vec::Vec<u8>,
}
#[derive(serde::Serialize, serde::Deserialize)]
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct EcdsaArtifactId {
#[prost(oneof = "ecdsa_artifact_id::Kind", tags = "1, 2, 3, 4, 5")]
pub kind: ::core::option::Option<ecdsa_artifact_id::Kind>,
}
/// Nested message and enum types in `EcdsaArtifactId`.
pub mod ecdsa_artifact_id {
#[derive(serde::Serialize, serde::Deserialize)]
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum Kind {
#[prost(message, tag = "1")]
Dealing(super::PrefixHashPair),
#[prost(message, tag = "2")]
DealingSupport(super::PrefixHashPair),
#[prost(message, tag = "3")]
SigShare(super::PrefixHashPair),
#[prost(message, tag = "4")]
Complaint(super::PrefixHashPair),
#[prost(message, tag = "5")]
Opening(super::PrefixHashPair),
}
}
#[derive(
serde::Serialize,
serde::Deserialize,
Clone,
Copy,
Debug,
PartialEq,
Eq,