Skip to content

Commit 1c48c15

Browse files
authored
update acv.proto (#62)
1 parent cdd6add commit 1c48c15

File tree

2 files changed

+15
-15
lines changed

2 files changed

+15
-15
lines changed

protos/solution/acv/acv.proto

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -123,8 +123,8 @@ message VoteStorage {
123123
Ballot rest_ballot = 3;
124124
repeated CandidateBallot voted_ballot = 4;
125125
// the ballot for unlisted-candidates
126-
repeated CipherPointsToBallotPair voted_ballot_unlisted = 6;
127-
Ballot zero_ballot = 7;
126+
repeated CipherPointsToBallotPair voted_ballot_unlisted = 5;
127+
Ballot zero_ballot = 6;
128128
}
129129

130130
// the ballot for the unlisted-candidate
@@ -133,7 +133,7 @@ message CipherPointsToBallotPair
133133
// the unlisted-candidate cipher
134134
CipherPoints key = 1;
135135
// the ballot for the unlisted-candidate
136-
Ballot ballot = 3;
136+
Ballot ballot = 2;
137137
}
138138

139139
// CipherPointsToBallotPair and CipherPointsToBallotProofPair associated by candidate cipher(CipherPoints)

protos/src/generated/acv.rs

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3750,7 +3750,7 @@ impl VoteStorage {
37503750
::std::mem::replace(&mut self.voted_ballot, ::protobuf::RepeatedField::new())
37513751
}
37523752

3753-
// repeated .com.webank.wedpr.acv.proto.CipherPointsToBallotPair voted_ballot_unlisted = 6;
3753+
// repeated .com.webank.wedpr.acv.proto.CipherPointsToBallotPair voted_ballot_unlisted = 5;
37543754

37553755

37563756
pub fn get_voted_ballot_unlisted(&self) -> &[CipherPointsToBallotPair] {
@@ -3775,7 +3775,7 @@ impl VoteStorage {
37753775
::std::mem::replace(&mut self.voted_ballot_unlisted, ::protobuf::RepeatedField::new())
37763776
}
37773777

3778-
// .com.webank.wedpr.acv.proto.Ballot zero_ballot = 7;
3778+
// .com.webank.wedpr.acv.proto.Ballot zero_ballot = 6;
37793779

37803780

37813781
pub fn get_zero_ballot(&self) -> &Ballot {
@@ -3855,10 +3855,10 @@ impl ::protobuf::Message for VoteStorage {
38553855
4 => {
38563856
::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.voted_ballot)?;
38573857
},
3858-
6 => {
3858+
5 => {
38593859
::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.voted_ballot_unlisted)?;
38603860
},
3861-
7 => {
3861+
6 => {
38623862
::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.zero_ballot)?;
38633863
},
38643864
_ => {
@@ -3921,12 +3921,12 @@ impl ::protobuf::Message for VoteStorage {
39213921
v.write_to_with_cached_sizes(os)?;
39223922
};
39233923
for v in &self.voted_ballot_unlisted {
3924-
os.write_tag(6, ::protobuf::wire_format::WireTypeLengthDelimited)?;
3924+
os.write_tag(5, ::protobuf::wire_format::WireTypeLengthDelimited)?;
39253925
os.write_raw_varint32(v.get_cached_size())?;
39263926
v.write_to_with_cached_sizes(os)?;
39273927
};
39283928
if let Some(ref v) = self.zero_ballot.as_ref() {
3929-
os.write_tag(7, ::protobuf::wire_format::WireTypeLengthDelimited)?;
3929+
os.write_tag(6, ::protobuf::wire_format::WireTypeLengthDelimited)?;
39303930
os.write_raw_varint32(v.get_cached_size())?;
39313931
v.write_to_with_cached_sizes(os)?;
39323932
}
@@ -4090,7 +4090,7 @@ impl CipherPointsToBallotPair {
40904090
self.key.take().unwrap_or_else(|| CipherPoints::new())
40914091
}
40924092

4093-
// .com.webank.wedpr.acv.proto.Ballot ballot = 3;
4093+
// .com.webank.wedpr.acv.proto.Ballot ballot = 2;
40944094

40954095

40964096
pub fn get_ballot(&self) -> &Ballot {
@@ -4146,7 +4146,7 @@ impl ::protobuf::Message for CipherPointsToBallotPair {
41464146
1 => {
41474147
::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.key)?;
41484148
},
4149-
3 => {
4149+
2 => {
41504150
::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.ballot)?;
41514151
},
41524152
_ => {
@@ -4181,7 +4181,7 @@ impl ::protobuf::Message for CipherPointsToBallotPair {
41814181
v.write_to_with_cached_sizes(os)?;
41824182
}
41834183
if let Some(ref v) = self.ballot.as_ref() {
4184-
os.write_tag(3, ::protobuf::wire_format::WireTypeLengthDelimited)?;
4184+
os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?;
41854185
os.write_raw_varint32(v.get_cached_size())?;
41864186
v.write_to_with_cached_sizes(os)?;
41874187
}
@@ -6205,12 +6205,12 @@ static file_descriptor_proto_data: &'static [u8] = b"\
62056205
kBallot\x12C\n\x0brest_ballot\x18\x03\x20\x01(\x0b2\".com.webank.wedpr.a\
62066206
cv.proto.BallotR\nrestBallot\x12N\n\x0cvoted_ballot\x18\x04\x20\x03(\x0b\
62076207
2+.com.webank.wedpr.acv.proto.CandidateBallotR\x0bvotedBallot\x12h\n\x15\
6208-
voted_ballot_unlisted\x18\x06\x20\x03(\x0b24.com.webank.wedpr.acv.proto.\
6208+
voted_ballot_unlisted\x18\x05\x20\x03(\x0b24.com.webank.wedpr.acv.proto.\
62096209
CipherPointsToBallotPairR\x13votedBallotUnlisted\x12C\n\x0bzero_ballot\
6210-
\x18\x07\x20\x01(\x0b2\".com.webank.wedpr.acv.proto.BallotR\nzeroBallot\
6210+
\x18\x06\x20\x01(\x0b2\".com.webank.wedpr.acv.proto.BallotR\nzeroBallot\
62116211
\"\x92\x01\n\x18CipherPointsToBallotPair\x12:\n\x03key\x18\x01\x20\x01(\
62126212
\x0b2(.com.webank.wedpr.acv.proto.CipherPointsR\x03key\x12:\n\x06ballot\
6213-
\x18\x03\x20\x01(\x0b2\".com.webank.wedpr.acv.proto.BallotR\x06ballot\"\
6213+
\x18\x02\x20\x01(\x0b2\".com.webank.wedpr.acv.proto.BallotR\x06ballot\"\
62146214
\x9a\x01\n\x1dCipherPointsToBallotProofPair\x12:\n\x03key\x18\x01\x20\
62156215
\x01(\x0b2(.com.webank.wedpr.acv.proto.CipherPointsR\x03key\x12=\n\x05va\
62166216
lue\x18\x02\x20\x01(\x0b2'.com.webank.wedpr.acv.proto.BallotProofR\x05va\

0 commit comments

Comments
 (0)