Skip to content

Commit c374168

Browse files
jannikluhnulope
authored andcommitted
1 parent ec056d2 commit c374168

File tree

2 files changed

+79
-83
lines changed

2 files changed

+79
-83
lines changed

rolling-shutter/p2pmsg/gossip.proto

Lines changed: 44 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -7,83 +7,83 @@ option go_package = "./;p2pmsg";
77

88

99
message DecryptionTrigger {
10-
uint64 instanceID = 1;
11-
bytes epochID = 2;
12-
uint64 blockNumber = 3;
13-
bytes transactionsHash = 4;
14-
bytes signature = 5;
10+
uint64 instanceID = 1;
11+
bytes epochID = 2;
12+
uint64 blockNumber = 3;
13+
bytes transactionsHash = 4;
14+
bytes signature = 5;
1515
}
1616

1717
message KeyShare {
18-
bytes epochID = 1;
19-
bytes share = 2;
18+
bytes epochID = 1;
19+
bytes share = 2;
2020
}
2121

2222
message GnosisDecryptionKeySharesExtra {
23-
uint64 slot = 1;
24-
uint64 tx_pointer = 2;
25-
bytes signature = 3;
23+
uint64 slot = 1;
24+
uint64 tx_pointer = 2;
25+
bytes signature = 3;
2626
}
2727

2828
message OptimismDecryptionKeySharesExtra {}
2929

3030
message DecryptionKeyShares {
31-
uint64 instanceID = 1;
32-
uint64 eon = 4;
33-
uint64 keyperIndex = 5;
34-
repeated KeyShare shares = 9;
35-
oneof extra {
36-
GnosisDecryptionKeySharesExtra gnosis = 10;
37-
OptimismDecryptionKeySharesExtra optimism = 11;
38-
}
31+
uint64 instanceID = 1;
32+
uint64 eon = 4;
33+
uint64 keyperIndex = 5;
34+
repeated KeyShare shares = 9;
35+
oneof extra {
36+
GnosisDecryptionKeySharesExtra gnosis = 10;
37+
OptimismDecryptionKeySharesExtra optimism = 11;
38+
}
3939
}
4040

4141
message Key {
42-
bytes identity = 1;
43-
bytes key = 2;
42+
bytes identity = 1;
43+
bytes key = 2;
4444
}
4545

4646
message GnosisDecryptionKeysExtra {
47-
uint64 slot = 1;
48-
uint64 tx_pointer = 2;
49-
repeated uint64 signerIndices = 3;
50-
repeated bytes signatures = 4;
47+
uint64 slot = 1;
48+
uint64 tx_pointer = 2;
49+
repeated uint64 signerIndices = 3;
50+
repeated bytes signatures = 4;
5151
}
5252

5353
message OptimismDecryptionKeysExtra {}
5454

5555
message DecryptionKeys {
56-
uint64 instanceID = 1;
57-
uint64 eon = 2;
58-
repeated Key keys = 3;
59-
oneof extra {
60-
GnosisDecryptionKeysExtra gnosis = 4;
61-
OptimismDecryptionKeysExtra optimism = 5;
62-
}
56+
uint64 instanceID = 1;
57+
uint64 eon = 2;
58+
repeated Key keys = 3;
59+
oneof extra {
60+
GnosisDecryptionKeysExtra gnosis = 4;
61+
OptimismDecryptionKeysExtra optimism = 5;
62+
}
6363
}
6464

6565
// EonPublicKey is sent by the keypers to publish the EonPublicKey for a certain
6666
// eon. For those that observe it, e.g. the collator, it's a candidate until
6767
// the observer has seen at least threshold messages.
6868
message EonPublicKey {
69-
uint64 instanceID = 1;
70-
bytes publicKey= 2;
71-
uint64 activationBlock = 3;
72-
uint64 keyperConfigIndex = 6;
73-
uint64 eon = 7;
74-
bytes signature = 5;
69+
uint64 instanceID = 1;
70+
bytes publicKey = 2;
71+
uint64 activationBlock = 3;
72+
uint64 keyperConfigIndex = 6;
73+
uint64 eon = 7;
74+
bytes signature = 5;
7575
}
7676

7777

7878
message TraceContext {
79-
bytes traceID = 1;
80-
bytes spanID = 2;
81-
bytes traceFlags = 3;
82-
string traceState = 4;
79+
bytes traceID = 1;
80+
bytes spanID = 2;
81+
bytes traceFlags = 3;
82+
string traceState = 4;
8383
}
8484

8585
message Envelope {
86-
string version = 1 ;
87-
google.protobuf.Any message = 2;
88-
optional TraceContext trace = 3;
86+
string version = 1;
87+
google.protobuf.Any message = 2;
88+
optional TraceContext trace = 3;
8989
}

rolling-shutter/shmsg/shmsg.proto

Lines changed: 35 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -4,46 +4,42 @@ package shmsg;
44
option go_package = "./;shmsg";
55

66
message BatchConfig {
7-
uint64 activation_block_number = 1;
8-
repeated bytes keypers = 2;
9-
uint64 threshold = 3 ;
10-
uint64 keyper_config_index = 5;
7+
uint64 activation_block_number = 1;
8+
repeated bytes keypers = 2;
9+
uint64 threshold = 3;
10+
uint64 keyper_config_index = 5;
1111
}
1212

13-
// message BatchConfigStarted {
14-
// uint64 batch_config_index = 1;
15-
// }
16-
1713
message BlockSeen {
18-
uint64 block_number = 1;
14+
uint64 block_number = 1;
1915
}
2016

2117
message CheckIn {
22-
bytes validator_public_key = 1; // 32 byte ed25519 public key
23-
bytes encryption_public_key = 2; // compressed ecies public key
18+
bytes validator_public_key = 1;// 32 byte ed25519 public key
19+
bytes encryption_public_key = 2;// compressed ecies public key
2420
}
2521

2622

2723
message PolyEval {
28-
uint64 eon = 1;
29-
repeated bytes receivers = 2;
30-
repeated bytes encrypted_evals = 3;
24+
uint64 eon = 1;
25+
repeated bytes receivers = 2;
26+
repeated bytes encrypted_evals = 3;
3127
}
3228

3329
message PolyCommitment {
34-
uint64 eon = 1;
35-
repeated bytes gammas = 2;
30+
uint64 eon = 1;
31+
repeated bytes gammas = 2;
3632
}
3733

3834
message Accusation {
39-
uint64 eon = 1;
40-
repeated bytes accused = 2;
35+
uint64 eon = 1;
36+
repeated bytes accused = 2;
4137
}
4238

4339
message Apology {
44-
uint64 eon = 1;
45-
repeated bytes accusers = 2;
46-
repeated bytes poly_evals = 3;
40+
uint64 eon = 1;
41+
repeated bytes accusers = 2;
42+
repeated bytes poly_evals = 3;
4743
}
4844

4945
// DKGResult is sent by the keyper if the DKG process for an eon has
@@ -52,30 +48,30 @@ message Apology {
5248
// shuttermint app will restart the DKG process. This replaces the EonStartVote
5349
// the keypers sent previously when the DKG process failed.
5450
message DKGResult {
55-
bool success = 1;
56-
uint64 eon=2;
51+
bool success = 1;
52+
uint64 eon = 2;
5753
}
5854

5955
message Message {
60-
oneof payload {
61-
BatchConfig batch_config = 4;
62-
// BatchConfigStarted batch_config_started = 6;
63-
BlockSeen block_seen = 14;
64-
CheckIn check_in = 7;
56+
oneof payload {
57+
BatchConfig batch_config = 4;
58+
// BatchConfigStarted batch_config_started = 6;
59+
BlockSeen block_seen = 14;
60+
CheckIn check_in = 7;
6561

66-
// DKG messages
67-
PolyEval poly_eval = 9;
68-
PolyCommitment poly_commitment = 10;
69-
Accusation accusation = 11;
70-
Apology apology = 12;
62+
// DKG messages
63+
PolyEval poly_eval = 9;
64+
PolyCommitment poly_commitment = 10;
65+
Accusation accusation = 11;
66+
Apology apology = 12;
7167

72-
DKGResult dkg_result = 15;
73-
// EonStartVote eon_start_vote = 13;
74-
}
68+
DKGResult dkg_result = 15;
69+
// EonStartVote eon_start_vote = 13;
70+
}
7571
}
7672

7773
message MessageWithNonce {
78-
Message msg = 1;
79-
bytes chain_id = 2;
80-
uint64 random_nonce = 3;
74+
Message msg = 1;
75+
bytes chain_id = 2;
76+
uint64 random_nonce = 3;
8177
}

0 commit comments

Comments
 (0)