mirror of
https://github.com/logos-messaging/chat_proto.git
synced 2026-02-18 03:53:13 +00:00
40 lines
1.3 KiB
Rust
40 lines
1.3 KiB
Rust
// @generated
|
|
// This file is @generated by prost-build.
|
|
/// TODO: This also encompasses plaintexts, is there a better name?
|
|
/// Alternatives: ???
|
|
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
|
|
pub struct EncryptedPayload {
|
|
#[prost(oneof="encrypted_payload::Encryption", tags="1, 2")]
|
|
pub encryption: ::core::option::Option<encrypted_payload::Encryption>,
|
|
}
|
|
/// Nested message and enum types in `EncryptedPayload`.
|
|
pub mod encrypted_payload {
|
|
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Oneof)]
|
|
pub enum Encryption {
|
|
#[prost(message, tag="1")]
|
|
Plaintext(super::Plaintext),
|
|
#[prost(message, tag="2")]
|
|
Doubleratchet(super::Doubleratchet),
|
|
}
|
|
}
|
|
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
|
|
pub struct Plaintext {
|
|
#[prost(bytes="bytes", tag="1")]
|
|
pub payload: ::prost::bytes::Bytes,
|
|
}
|
|
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
|
|
pub struct Doubleratchet {
|
|
/// 32 byte array
|
|
#[prost(bytes="bytes", tag="1")]
|
|
pub dh: ::prost::bytes::Bytes,
|
|
#[prost(uint32, tag="2")]
|
|
pub msg_num: u32,
|
|
#[prost(uint32, tag="3")]
|
|
pub prev_chain_len: u32,
|
|
#[prost(bytes="bytes", tag="4")]
|
|
pub ciphertext: ::prost::bytes::Bytes,
|
|
#[prost(string, tag="5")]
|
|
pub aux: ::prost::alloc::string::String,
|
|
}
|
|
// @@protoc_insertion_point(module)
|