#![allow(unknown_lints)]
#![allow(clippy::all)]
#![allow(unused_attributes)]
#![cfg_attr(rustfmt, rustfmt::skip)]
#![allow(box_pointers)]
#![allow(dead_code)]
#![allow(missing_docs)]
#![allow(non_camel_case_types)]
#![allow(non_snake_case)]
#![allow(non_upper_case_globals)]
#![allow(trivial_casts)]
#![allow(unused_imports)]
#![allow(unused_results)]
#[derive(PartialEq,Clone,Default)]
pub struct ReceiverSecretKOutOfN {
pub scalar_b: ::std::vec::Vec<u8>,
pub unknown_fields: ::protobuf::UnknownFields,
pub cached_size: ::protobuf::CachedSize,
}
impl<'a> ::std::default::Default for &'a ReceiverSecretKOutOfN {
fn default() -> &'a ReceiverSecretKOutOfN {
<ReceiverSecretKOutOfN as ::protobuf::Message>::default_instance()
}
}
impl ReceiverSecretKOutOfN {
pub fn new() -> ReceiverSecretKOutOfN {
::std::default::Default::default()
}
pub fn get_scalar_b(&self) -> &[u8] {
&self.scalar_b
}
pub fn clear_scalar_b(&mut self) {
self.scalar_b.clear();
}
pub fn set_scalar_b(&mut self, v: ::std::vec::Vec<u8>) {
self.scalar_b = v;
}
pub fn mut_scalar_b(&mut self) -> &mut ::std::vec::Vec<u8> {
&mut self.scalar_b
}
pub fn take_scalar_b(&mut self) -> ::std::vec::Vec<u8> {
::std::mem::replace(&mut self.scalar_b, ::std::vec::Vec::new())
}
}
impl ::protobuf::Message for ReceiverSecretKOutOfN {
fn is_initialized(&self) -> bool {
true
}
fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
while !is.eof()? {
let (field_number, wire_type) = is.read_tag_unpack()?;
match field_number {
2 => {
::protobuf::rt::read_singular_proto3_bytes_into(wire_type, is, &mut self.scalar_b)?;
},
_ => {
::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
},
};
}
::std::result::Result::Ok(())
}
#[allow(unused_variables)]
fn compute_size(&self) -> u32 {
let mut my_size = 0;
if !self.scalar_b.is_empty() {
my_size += ::protobuf::rt::bytes_size(2, &self.scalar_b);
}
my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
self.cached_size.set(my_size);
my_size
}
fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
if !self.scalar_b.is_empty() {
os.write_bytes(2, &self.scalar_b)?;
}
os.write_unknown_fields(self.get_unknown_fields())?;
::std::result::Result::Ok(())
}
fn get_cached_size(&self) -> u32 {
self.cached_size.get()
}
fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
&self.unknown_fields
}
fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
&mut self.unknown_fields
}
fn as_any(&self) -> &dyn (::std::any::Any) {
self as &dyn (::std::any::Any)
}
fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
self as &mut dyn (::std::any::Any)
}
fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
self
}
fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
Self::descriptor_static()
}
fn new() -> ReceiverSecretKOutOfN {
ReceiverSecretKOutOfN::new()
}
fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT;
descriptor.get(|| {
let mut fields = ::std::vec::Vec::new();
fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBytes>(
"scalar_b",
|m: &ReceiverSecretKOutOfN| { &m.scalar_b },
|m: &mut ReceiverSecretKOutOfN| { &mut m.scalar_b },
));
::protobuf::reflect::MessageDescriptor::new_pb_name::<ReceiverSecretKOutOfN>(
"ReceiverSecretKOutOfN",
fields,
file_descriptor_proto()
)
})
}
fn default_instance() -> &'static ReceiverSecretKOutOfN {
static instance: ::protobuf::rt::LazyV2<ReceiverSecretKOutOfN> = ::protobuf::rt::LazyV2::INIT;
instance.get(ReceiverSecretKOutOfN::new)
}
}
impl ::protobuf::Clear for ReceiverSecretKOutOfN {
fn clear(&mut self) {
self.scalar_b.clear();
self.unknown_fields.clear();
}
}
impl ::std::fmt::Debug for ReceiverSecretKOutOfN {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
::protobuf::text_format::fmt(self, f)
}
}
impl ::protobuf::reflect::ProtobufValue for ReceiverSecretKOutOfN {
fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
::protobuf::reflect::ReflectValueRef::Message(self)
}
}
#[derive(PartialEq,Clone,Default)]
pub struct ReceiverCommitmentKOutOfN {
pub point_x: ::std::vec::Vec<u8>,
pub point_y: ::std::vec::Vec<u8>,
pub point_z: ::protobuf::RepeatedField<::std::vec::Vec<u8>>,
pub unknown_fields: ::protobuf::UnknownFields,
pub cached_size: ::protobuf::CachedSize,
}
impl<'a> ::std::default::Default for &'a ReceiverCommitmentKOutOfN {
fn default() -> &'a ReceiverCommitmentKOutOfN {
<ReceiverCommitmentKOutOfN as ::protobuf::Message>::default_instance()
}
}
impl ReceiverCommitmentKOutOfN {
pub fn new() -> ReceiverCommitmentKOutOfN {
::std::default::Default::default()
}
pub fn get_point_x(&self) -> &[u8] {
&self.point_x
}
pub fn clear_point_x(&mut self) {
self.point_x.clear();
}
pub fn set_point_x(&mut self, v: ::std::vec::Vec<u8>) {
self.point_x = v;
}
pub fn mut_point_x(&mut self) -> &mut ::std::vec::Vec<u8> {
&mut self.point_x
}
pub fn take_point_x(&mut self) -> ::std::vec::Vec<u8> {
::std::mem::replace(&mut self.point_x, ::std::vec::Vec::new())
}
pub fn get_point_y(&self) -> &[u8] {
&self.point_y
}
pub fn clear_point_y(&mut self) {
self.point_y.clear();
}
pub fn set_point_y(&mut self, v: ::std::vec::Vec<u8>) {
self.point_y = v;
}
pub fn mut_point_y(&mut self) -> &mut ::std::vec::Vec<u8> {
&mut self.point_y
}
pub fn take_point_y(&mut self) -> ::std::vec::Vec<u8> {
::std::mem::replace(&mut self.point_y, ::std::vec::Vec::new())
}
pub fn get_point_z(&self) -> &[::std::vec::Vec<u8>] {
&self.point_z
}
pub fn clear_point_z(&mut self) {
self.point_z.clear();
}
pub fn set_point_z(&mut self, v: ::protobuf::RepeatedField<::std::vec::Vec<u8>>) {
self.point_z = v;
}
pub fn mut_point_z(&mut self) -> &mut ::protobuf::RepeatedField<::std::vec::Vec<u8>> {
&mut self.point_z
}
pub fn take_point_z(&mut self) -> ::protobuf::RepeatedField<::std::vec::Vec<u8>> {
::std::mem::replace(&mut self.point_z, ::protobuf::RepeatedField::new())
}
}
impl ::protobuf::Message for ReceiverCommitmentKOutOfN {
fn is_initialized(&self) -> bool {
true
}
fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
while !is.eof()? {
let (field_number, wire_type) = is.read_tag_unpack()?;
match field_number {
1 => {
::protobuf::rt::read_singular_proto3_bytes_into(wire_type, is, &mut self.point_x)?;
},
2 => {
::protobuf::rt::read_singular_proto3_bytes_into(wire_type, is, &mut self.point_y)?;
},
3 => {
::protobuf::rt::read_repeated_bytes_into(wire_type, is, &mut self.point_z)?;
},
_ => {
::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
},
};
}
::std::result::Result::Ok(())
}
#[allow(unused_variables)]
fn compute_size(&self) -> u32 {
let mut my_size = 0;
if !self.point_x.is_empty() {
my_size += ::protobuf::rt::bytes_size(1, &self.point_x);
}
if !self.point_y.is_empty() {
my_size += ::protobuf::rt::bytes_size(2, &self.point_y);
}
for value in &self.point_z {
my_size += ::protobuf::rt::bytes_size(3, &value);
};
my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
self.cached_size.set(my_size);
my_size
}
fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
if !self.point_x.is_empty() {
os.write_bytes(1, &self.point_x)?;
}
if !self.point_y.is_empty() {
os.write_bytes(2, &self.point_y)?;
}
for v in &self.point_z {
os.write_bytes(3, &v)?;
};
os.write_unknown_fields(self.get_unknown_fields())?;
::std::result::Result::Ok(())
}
fn get_cached_size(&self) -> u32 {
self.cached_size.get()
}
fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
&self.unknown_fields
}
fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
&mut self.unknown_fields
}
fn as_any(&self) -> &dyn (::std::any::Any) {
self as &dyn (::std::any::Any)
}
fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
self as &mut dyn (::std::any::Any)
}
fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
self
}
fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
Self::descriptor_static()
}
fn new() -> ReceiverCommitmentKOutOfN {
ReceiverCommitmentKOutOfN::new()
}
fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT;
descriptor.get(|| {
let mut fields = ::std::vec::Vec::new();
fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBytes>(
"point_x",
|m: &ReceiverCommitmentKOutOfN| { &m.point_x },
|m: &mut ReceiverCommitmentKOutOfN| { &mut m.point_x },
));
fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBytes>(
"point_y",
|m: &ReceiverCommitmentKOutOfN| { &m.point_y },
|m: &mut ReceiverCommitmentKOutOfN| { &mut m.point_y },
));
fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeBytes>(
"point_z",
|m: &ReceiverCommitmentKOutOfN| { &m.point_z },
|m: &mut ReceiverCommitmentKOutOfN| { &mut m.point_z },
));
::protobuf::reflect::MessageDescriptor::new_pb_name::<ReceiverCommitmentKOutOfN>(
"ReceiverCommitmentKOutOfN",
fields,
file_descriptor_proto()
)
})
}
fn default_instance() -> &'static ReceiverCommitmentKOutOfN {
static instance: ::protobuf::rt::LazyV2<ReceiverCommitmentKOutOfN> = ::protobuf::rt::LazyV2::INIT;
instance.get(ReceiverCommitmentKOutOfN::new)
}
}
impl ::protobuf::Clear for ReceiverCommitmentKOutOfN {
fn clear(&mut self) {
self.point_x.clear();
self.point_y.clear();
self.point_z.clear();
self.unknown_fields.clear();
}
}
impl ::std::fmt::Debug for ReceiverCommitmentKOutOfN {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
::protobuf::text_format::fmt(self, f)
}
}
impl ::protobuf::reflect::ProtobufValue for ReceiverCommitmentKOutOfN {
fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
::protobuf::reflect::ReflectValueRef::Message(self)
}
}
#[derive(PartialEq,Clone,Default)]
pub struct OtCiphertextItemKOutOfN {
pub fingerprint: ::std::vec::Vec<u8>,
pub key_basepoint: ::std::vec::Vec<u8>,
pub encrypted_message: ::protobuf::RepeatedField<::std::vec::Vec<u8>>,
pub unknown_fields: ::protobuf::UnknownFields,
pub cached_size: ::protobuf::CachedSize,
}
impl<'a> ::std::default::Default for &'a OtCiphertextItemKOutOfN {
fn default() -> &'a OtCiphertextItemKOutOfN {
<OtCiphertextItemKOutOfN as ::protobuf::Message>::default_instance()
}
}
impl OtCiphertextItemKOutOfN {
pub fn new() -> OtCiphertextItemKOutOfN {
::std::default::Default::default()
}
pub fn get_fingerprint(&self) -> &[u8] {
&self.fingerprint
}
pub fn clear_fingerprint(&mut self) {
self.fingerprint.clear();
}
pub fn set_fingerprint(&mut self, v: ::std::vec::Vec<u8>) {
self.fingerprint = v;
}
pub fn mut_fingerprint(&mut self) -> &mut ::std::vec::Vec<u8> {
&mut self.fingerprint
}
pub fn take_fingerprint(&mut self) -> ::std::vec::Vec<u8> {
::std::mem::replace(&mut self.fingerprint, ::std::vec::Vec::new())
}
pub fn get_key_basepoint(&self) -> &[u8] {
&self.key_basepoint
}
pub fn clear_key_basepoint(&mut self) {
self.key_basepoint.clear();
}
pub fn set_key_basepoint(&mut self, v: ::std::vec::Vec<u8>) {
self.key_basepoint = v;
}
pub fn mut_key_basepoint(&mut self) -> &mut ::std::vec::Vec<u8> {
&mut self.key_basepoint
}
pub fn take_key_basepoint(&mut self) -> ::std::vec::Vec<u8> {
::std::mem::replace(&mut self.key_basepoint, ::std::vec::Vec::new())
}
pub fn get_encrypted_message(&self) -> &[::std::vec::Vec<u8>] {
&self.encrypted_message
}
pub fn clear_encrypted_message(&mut self) {
self.encrypted_message.clear();
}
pub fn set_encrypted_message(&mut self, v: ::protobuf::RepeatedField<::std::vec::Vec<u8>>) {
self.encrypted_message = v;
}
pub fn mut_encrypted_message(&mut self) -> &mut ::protobuf::RepeatedField<::std::vec::Vec<u8>> {
&mut self.encrypted_message
}
pub fn take_encrypted_message(&mut self) -> ::protobuf::RepeatedField<::std::vec::Vec<u8>> {
::std::mem::replace(&mut self.encrypted_message, ::protobuf::RepeatedField::new())
}
}
impl ::protobuf::Message for OtCiphertextItemKOutOfN {
fn is_initialized(&self) -> bool {
true
}
fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
while !is.eof()? {
let (field_number, wire_type) = is.read_tag_unpack()?;
match field_number {
1 => {
::protobuf::rt::read_singular_proto3_bytes_into(wire_type, is, &mut self.fingerprint)?;
},
2 => {
::protobuf::rt::read_singular_proto3_bytes_into(wire_type, is, &mut self.key_basepoint)?;
},
3 => {
::protobuf::rt::read_repeated_bytes_into(wire_type, is, &mut self.encrypted_message)?;
},
_ => {
::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
},
};
}
::std::result::Result::Ok(())
}
#[allow(unused_variables)]
fn compute_size(&self) -> u32 {
let mut my_size = 0;
if !self.fingerprint.is_empty() {
my_size += ::protobuf::rt::bytes_size(1, &self.fingerprint);
}
if !self.key_basepoint.is_empty() {
my_size += ::protobuf::rt::bytes_size(2, &self.key_basepoint);
}
for value in &self.encrypted_message {
my_size += ::protobuf::rt::bytes_size(3, &value);
};
my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
self.cached_size.set(my_size);
my_size
}
fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
if !self.fingerprint.is_empty() {
os.write_bytes(1, &self.fingerprint)?;
}
if !self.key_basepoint.is_empty() {
os.write_bytes(2, &self.key_basepoint)?;
}
for v in &self.encrypted_message {
os.write_bytes(3, &v)?;
};
os.write_unknown_fields(self.get_unknown_fields())?;
::std::result::Result::Ok(())
}
fn get_cached_size(&self) -> u32 {
self.cached_size.get()
}
fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
&self.unknown_fields
}
fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
&mut self.unknown_fields
}
fn as_any(&self) -> &dyn (::std::any::Any) {
self as &dyn (::std::any::Any)
}
fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
self as &mut dyn (::std::any::Any)
}
fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
self
}
fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
Self::descriptor_static()
}
fn new() -> OtCiphertextItemKOutOfN {
OtCiphertextItemKOutOfN::new()
}
fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT;
descriptor.get(|| {
let mut fields = ::std::vec::Vec::new();
fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBytes>(
"fingerprint",
|m: &OtCiphertextItemKOutOfN| { &m.fingerprint },
|m: &mut OtCiphertextItemKOutOfN| { &mut m.fingerprint },
));
fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBytes>(
"key_basepoint",
|m: &OtCiphertextItemKOutOfN| { &m.key_basepoint },
|m: &mut OtCiphertextItemKOutOfN| { &mut m.key_basepoint },
));
fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeBytes>(
"encrypted_message",
|m: &OtCiphertextItemKOutOfN| { &m.encrypted_message },
|m: &mut OtCiphertextItemKOutOfN| { &mut m.encrypted_message },
));
::protobuf::reflect::MessageDescriptor::new_pb_name::<OtCiphertextItemKOutOfN>(
"OtCiphertextItemKOutOfN",
fields,
file_descriptor_proto()
)
})
}
fn default_instance() -> &'static OtCiphertextItemKOutOfN {
static instance: ::protobuf::rt::LazyV2<OtCiphertextItemKOutOfN> = ::protobuf::rt::LazyV2::INIT;
instance.get(OtCiphertextItemKOutOfN::new)
}
}
impl ::protobuf::Clear for OtCiphertextItemKOutOfN {
fn clear(&mut self) {
self.fingerprint.clear();
self.key_basepoint.clear();
self.encrypted_message.clear();
self.unknown_fields.clear();
}
}
impl ::std::fmt::Debug for OtCiphertextItemKOutOfN {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
::protobuf::text_format::fmt(self, f)
}
}
impl ::protobuf::reflect::ProtobufValue for OtCiphertextItemKOutOfN {
fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
::protobuf::reflect::ReflectValueRef::Message(self)
}
}
#[derive(PartialEq,Clone,Default)]
pub struct OtCiphertextsKOutOfN {
pub ciphertext: ::protobuf::RepeatedField<OtCiphertextItemKOutOfN>,
pub unknown_fields: ::protobuf::UnknownFields,
pub cached_size: ::protobuf::CachedSize,
}
impl<'a> ::std::default::Default for &'a OtCiphertextsKOutOfN {
fn default() -> &'a OtCiphertextsKOutOfN {
<OtCiphertextsKOutOfN as ::protobuf::Message>::default_instance()
}
}
impl OtCiphertextsKOutOfN {
pub fn new() -> OtCiphertextsKOutOfN {
::std::default::Default::default()
}
pub fn get_ciphertext(&self) -> &[OtCiphertextItemKOutOfN] {
&self.ciphertext
}
pub fn clear_ciphertext(&mut self) {
self.ciphertext.clear();
}
pub fn set_ciphertext(&mut self, v: ::protobuf::RepeatedField<OtCiphertextItemKOutOfN>) {
self.ciphertext = v;
}
pub fn mut_ciphertext(&mut self) -> &mut ::protobuf::RepeatedField<OtCiphertextItemKOutOfN> {
&mut self.ciphertext
}
pub fn take_ciphertext(&mut self) -> ::protobuf::RepeatedField<OtCiphertextItemKOutOfN> {
::std::mem::replace(&mut self.ciphertext, ::protobuf::RepeatedField::new())
}
}
impl ::protobuf::Message for OtCiphertextsKOutOfN {
fn is_initialized(&self) -> bool {
for v in &self.ciphertext {
if !v.is_initialized() {
return false;
}
};
true
}
fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
while !is.eof()? {
let (field_number, wire_type) = is.read_tag_unpack()?;
match field_number {
1 => {
::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.ciphertext)?;
},
_ => {
::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
},
};
}
::std::result::Result::Ok(())
}
#[allow(unused_variables)]
fn compute_size(&self) -> u32 {
let mut my_size = 0;
for value in &self.ciphertext {
let len = value.compute_size();
my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
};
my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
self.cached_size.set(my_size);
my_size
}
fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
for v in &self.ciphertext {
os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?;
os.write_raw_varint32(v.get_cached_size())?;
v.write_to_with_cached_sizes(os)?;
};
os.write_unknown_fields(self.get_unknown_fields())?;
::std::result::Result::Ok(())
}
fn get_cached_size(&self) -> u32 {
self.cached_size.get()
}
fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
&self.unknown_fields
}
fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
&mut self.unknown_fields
}
fn as_any(&self) -> &dyn (::std::any::Any) {
self as &dyn (::std::any::Any)
}
fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
self as &mut dyn (::std::any::Any)
}
fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
self
}
fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
Self::descriptor_static()
}
fn new() -> OtCiphertextsKOutOfN {
OtCiphertextsKOutOfN::new()
}
fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT;
descriptor.get(|| {
let mut fields = ::std::vec::Vec::new();
fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<OtCiphertextItemKOutOfN>>(
"ciphertext",
|m: &OtCiphertextsKOutOfN| { &m.ciphertext },
|m: &mut OtCiphertextsKOutOfN| { &mut m.ciphertext },
));
::protobuf::reflect::MessageDescriptor::new_pb_name::<OtCiphertextsKOutOfN>(
"OtCiphertextsKOutOfN",
fields,
file_descriptor_proto()
)
})
}
fn default_instance() -> &'static OtCiphertextsKOutOfN {
static instance: ::protobuf::rt::LazyV2<OtCiphertextsKOutOfN> = ::protobuf::rt::LazyV2::INIT;
instance.get(OtCiphertextsKOutOfN::new)
}
}
impl ::protobuf::Clear for OtCiphertextsKOutOfN {
fn clear(&mut self) {
self.ciphertext.clear();
self.unknown_fields.clear();
}
}
impl ::std::fmt::Debug for OtCiphertextsKOutOfN {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
::protobuf::text_format::fmt(self, f)
}
}
impl ::protobuf::reflect::ProtobufValue for OtCiphertextsKOutOfN {
fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
::protobuf::reflect::ReflectValueRef::Message(self)
}
}
#[derive(PartialEq,Clone,Default)]
pub struct BytesToBytesPair {
pub id: ::std::vec::Vec<u8>,
pub message: ::std::vec::Vec<u8>,
pub unknown_fields: ::protobuf::UnknownFields,
pub cached_size: ::protobuf::CachedSize,
}
impl<'a> ::std::default::Default for &'a BytesToBytesPair {
fn default() -> &'a BytesToBytesPair {
<BytesToBytesPair as ::protobuf::Message>::default_instance()
}
}
impl BytesToBytesPair {
pub fn new() -> BytesToBytesPair {
::std::default::Default::default()
}
pub fn get_id(&self) -> &[u8] {
&self.id
}
pub fn clear_id(&mut self) {
self.id.clear();
}
pub fn set_id(&mut self, v: ::std::vec::Vec<u8>) {
self.id = v;
}
pub fn mut_id(&mut self) -> &mut ::std::vec::Vec<u8> {
&mut self.id
}
pub fn take_id(&mut self) -> ::std::vec::Vec<u8> {
::std::mem::replace(&mut self.id, ::std::vec::Vec::new())
}
pub fn get_message(&self) -> &[u8] {
&self.message
}
pub fn clear_message(&mut self) {
self.message.clear();
}
pub fn set_message(&mut self, v: ::std::vec::Vec<u8>) {
self.message = v;
}
pub fn mut_message(&mut self) -> &mut ::std::vec::Vec<u8> {
&mut self.message
}
pub fn take_message(&mut self) -> ::std::vec::Vec<u8> {
::std::mem::replace(&mut self.message, ::std::vec::Vec::new())
}
}
impl ::protobuf::Message for BytesToBytesPair {
fn is_initialized(&self) -> bool {
true
}
fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
while !is.eof()? {
let (field_number, wire_type) = is.read_tag_unpack()?;
match field_number {
1 => {
::protobuf::rt::read_singular_proto3_bytes_into(wire_type, is, &mut self.id)?;
},
2 => {
::protobuf::rt::read_singular_proto3_bytes_into(wire_type, is, &mut self.message)?;
},
_ => {
::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
},
};
}
::std::result::Result::Ok(())
}
#[allow(unused_variables)]
fn compute_size(&self) -> u32 {
let mut my_size = 0;
if !self.id.is_empty() {
my_size += ::protobuf::rt::bytes_size(1, &self.id);
}
if !self.message.is_empty() {
my_size += ::protobuf::rt::bytes_size(2, &self.message);
}
my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
self.cached_size.set(my_size);
my_size
}
fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
if !self.id.is_empty() {
os.write_bytes(1, &self.id)?;
}
if !self.message.is_empty() {
os.write_bytes(2, &self.message)?;
}
os.write_unknown_fields(self.get_unknown_fields())?;
::std::result::Result::Ok(())
}
fn get_cached_size(&self) -> u32 {
self.cached_size.get()
}
fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
&self.unknown_fields
}
fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
&mut self.unknown_fields
}
fn as_any(&self) -> &dyn (::std::any::Any) {
self as &dyn (::std::any::Any)
}
fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
self as &mut dyn (::std::any::Any)
}
fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
self
}
fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
Self::descriptor_static()
}
fn new() -> BytesToBytesPair {
BytesToBytesPair::new()
}
fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT;
descriptor.get(|| {
let mut fields = ::std::vec::Vec::new();
fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBytes>(
"id",
|m: &BytesToBytesPair| { &m.id },
|m: &mut BytesToBytesPair| { &mut m.id },
));
fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBytes>(
"message",
|m: &BytesToBytesPair| { &m.message },
|m: &mut BytesToBytesPair| { &mut m.message },
));
::protobuf::reflect::MessageDescriptor::new_pb_name::<BytesToBytesPair>(
"BytesToBytesPair",
fields,
file_descriptor_proto()
)
})
}
fn default_instance() -> &'static BytesToBytesPair {
static instance: ::protobuf::rt::LazyV2<BytesToBytesPair> = ::protobuf::rt::LazyV2::INIT;
instance.get(BytesToBytesPair::new)
}
}
impl ::protobuf::Clear for BytesToBytesPair {
fn clear(&mut self) {
self.id.clear();
self.message.clear();
self.unknown_fields.clear();
}
}
impl ::std::fmt::Debug for BytesToBytesPair {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
::protobuf::text_format::fmt(self, f)
}
}
impl ::protobuf::reflect::ProtobufValue for BytesToBytesPair {
fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
::protobuf::reflect::ReflectValueRef::Message(self)
}
}
#[derive(PartialEq,Clone,Default)]
pub struct DataDict {
pub pair: ::protobuf::RepeatedField<BytesToBytesPair>,
pub unknown_fields: ::protobuf::UnknownFields,
pub cached_size: ::protobuf::CachedSize,
}
impl<'a> ::std::default::Default for &'a DataDict {
fn default() -> &'a DataDict {
<DataDict as ::protobuf::Message>::default_instance()
}
}
impl DataDict {
pub fn new() -> DataDict {
::std::default::Default::default()
}
pub fn get_pair(&self) -> &[BytesToBytesPair] {
&self.pair
}
pub fn clear_pair(&mut self) {
self.pair.clear();
}
pub fn set_pair(&mut self, v: ::protobuf::RepeatedField<BytesToBytesPair>) {
self.pair = v;
}
pub fn mut_pair(&mut self) -> &mut ::protobuf::RepeatedField<BytesToBytesPair> {
&mut self.pair
}
pub fn take_pair(&mut self) -> ::protobuf::RepeatedField<BytesToBytesPair> {
::std::mem::replace(&mut self.pair, ::protobuf::RepeatedField::new())
}
}
impl ::protobuf::Message for DataDict {
fn is_initialized(&self) -> bool {
for v in &self.pair {
if !v.is_initialized() {
return false;
}
};
true
}
fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
while !is.eof()? {
let (field_number, wire_type) = is.read_tag_unpack()?;
match field_number {
1 => {
::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.pair)?;
},
_ => {
::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
},
};
}
::std::result::Result::Ok(())
}
#[allow(unused_variables)]
fn compute_size(&self) -> u32 {
let mut my_size = 0;
for value in &self.pair {
let len = value.compute_size();
my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
};
my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
self.cached_size.set(my_size);
my_size
}
fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
for v in &self.pair {
os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?;
os.write_raw_varint32(v.get_cached_size())?;
v.write_to_with_cached_sizes(os)?;
};
os.write_unknown_fields(self.get_unknown_fields())?;
::std::result::Result::Ok(())
}
fn get_cached_size(&self) -> u32 {
self.cached_size.get()
}
fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
&self.unknown_fields
}
fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
&mut self.unknown_fields
}
fn as_any(&self) -> &dyn (::std::any::Any) {
self as &dyn (::std::any::Any)
}
fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
self as &mut dyn (::std::any::Any)
}
fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
self
}
fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
Self::descriptor_static()
}
fn new() -> DataDict {
DataDict::new()
}
fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT;
descriptor.get(|| {
let mut fields = ::std::vec::Vec::new();
fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<BytesToBytesPair>>(
"pair",
|m: &DataDict| { &m.pair },
|m: &mut DataDict| { &mut m.pair },
));
::protobuf::reflect::MessageDescriptor::new_pb_name::<DataDict>(
"DataDict",
fields,
file_descriptor_proto()
)
})
}
fn default_instance() -> &'static DataDict {
static instance: ::protobuf::rt::LazyV2<DataDict> = ::protobuf::rt::LazyV2::INIT;
instance.get(DataDict::new)
}
}
impl ::protobuf::Clear for DataDict {
fn clear(&mut self) {
self.pair.clear();
self.unknown_fields.clear();
}
}
impl ::std::fmt::Debug for DataDict {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
::protobuf::text_format::fmt(self, f)
}
}
impl ::protobuf::reflect::ProtobufValue for DataDict {
fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
::protobuf::reflect::ReflectValueRef::Message(self)
}
}
#[derive(PartialEq,Clone,Default)]
pub struct IdList {
pub id: ::protobuf::RepeatedField<::std::vec::Vec<u8>>,
pub unknown_fields: ::protobuf::UnknownFields,
pub cached_size: ::protobuf::CachedSize,
}
impl<'a> ::std::default::Default for &'a IdList {
fn default() -> &'a IdList {
<IdList as ::protobuf::Message>::default_instance()
}
}
impl IdList {
pub fn new() -> IdList {
::std::default::Default::default()
}
pub fn get_id(&self) -> &[::std::vec::Vec<u8>] {
&self.id
}
pub fn clear_id(&mut self) {
self.id.clear();
}
pub fn set_id(&mut self, v: ::protobuf::RepeatedField<::std::vec::Vec<u8>>) {
self.id = v;
}
pub fn mut_id(&mut self) -> &mut ::protobuf::RepeatedField<::std::vec::Vec<u8>> {
&mut self.id
}
pub fn take_id(&mut self) -> ::protobuf::RepeatedField<::std::vec::Vec<u8>> {
::std::mem::replace(&mut self.id, ::protobuf::RepeatedField::new())
}
}
impl ::protobuf::Message for IdList {
fn is_initialized(&self) -> bool {
true
}
fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
while !is.eof()? {
let (field_number, wire_type) = is.read_tag_unpack()?;
match field_number {
1 => {
::protobuf::rt::read_repeated_bytes_into(wire_type, is, &mut self.id)?;
},
_ => {
::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
},
};
}
::std::result::Result::Ok(())
}
#[allow(unused_variables)]
fn compute_size(&self) -> u32 {
let mut my_size = 0;
for value in &self.id {
my_size += ::protobuf::rt::bytes_size(1, &value);
};
my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
self.cached_size.set(my_size);
my_size
}
fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
for v in &self.id {
os.write_bytes(1, &v)?;
};
os.write_unknown_fields(self.get_unknown_fields())?;
::std::result::Result::Ok(())
}
fn get_cached_size(&self) -> u32 {
self.cached_size.get()
}
fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
&self.unknown_fields
}
fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
&mut self.unknown_fields
}
fn as_any(&self) -> &dyn (::std::any::Any) {
self as &dyn (::std::any::Any)
}
fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
self as &mut dyn (::std::any::Any)
}
fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
self
}
fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
Self::descriptor_static()
}
fn new() -> IdList {
IdList::new()
}
fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT;
descriptor.get(|| {
let mut fields = ::std::vec::Vec::new();
fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeBytes>(
"id",
|m: &IdList| { &m.id },
|m: &mut IdList| { &mut m.id },
));
::protobuf::reflect::MessageDescriptor::new_pb_name::<IdList>(
"IdList",
fields,
file_descriptor_proto()
)
})
}
fn default_instance() -> &'static IdList {
static instance: ::protobuf::rt::LazyV2<IdList> = ::protobuf::rt::LazyV2::INIT;
instance.get(IdList::new)
}
}
impl ::protobuf::Clear for IdList {
fn clear(&mut self) {
self.id.clear();
self.unknown_fields.clear();
}
}
impl ::std::fmt::Debug for IdList {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
::protobuf::text_format::fmt(self, f)
}
}
impl ::protobuf::reflect::ProtobufValue for IdList {
fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
::protobuf::reflect::ReflectValueRef::Message(self)
}
}
static file_descriptor_proto_data: &'static [u8] = b"\
\n\x0fcrypto/ot.proto\x12\x1dcom.webank.wedpr.crypto.proto\"2\n\x15Recei\
verSecretKOutOfN\x12\x19\n\x08scalar_b\x18\x02\x20\x01(\x0cR\x07scalarB\
\"f\n\x19ReceiverCommitmentKOutOfN\x12\x17\n\x07point_x\x18\x01\x20\x01(\
\x0cR\x06pointX\x12\x17\n\x07point_y\x18\x02\x20\x01(\x0cR\x06pointY\x12\
\x17\n\x07point_z\x18\x03\x20\x03(\x0cR\x06pointZ\"\x8d\x01\n\x17OtCiphe\
rtextItemKOutOfN\x12\x20\n\x0bfingerprint\x18\x01\x20\x01(\x0cR\x0bfinge\
rprint\x12#\n\rkey_basepoint\x18\x02\x20\x01(\x0cR\x0ckeyBasepoint\x12+\
\n\x11encrypted_message\x18\x03\x20\x03(\x0cR\x10encryptedMessage\"n\n\
\x14OtCiphertextsKOutOfN\x12V\n\nciphertext\x18\x01\x20\x03(\x0b26.com.w\
ebank.wedpr.crypto.proto.OtCiphertextItemKOutOfNR\nciphertext\"<\n\x10By\
tesToBytesPair\x12\x0e\n\x02id\x18\x01\x20\x01(\x0cR\x02id\x12\x18\n\x07\
message\x18\x02\x20\x01(\x0cR\x07message\"O\n\x08DataDict\x12C\n\x04pair\
\x18\x01\x20\x03(\x0b2/.com.webank.wedpr.crypto.proto.BytesToBytesPairR\
\x04pair\"\x18\n\x06IdList\x12\x0e\n\x02id\x18\x01\x20\x03(\x0cR\x02idB!\
\n\x1dcom.webank.wedpr.crypto.protoP\x01b\x06proto3\
";
static file_descriptor_proto_lazy: ::protobuf::rt::LazyV2<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::rt::LazyV2::INIT;
fn parse_descriptor_proto() -> ::protobuf::descriptor::FileDescriptorProto {
::protobuf::Message::parse_from_bytes(file_descriptor_proto_data).unwrap()
}
pub fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto {
file_descriptor_proto_lazy.get(|| {
parse_descriptor_proto()
})
}