update rust impl

This commit is contained in:
Jazz Turner-Baggs 2026-01-12 03:15:17 -08:00
parent aef5f0a741
commit e34c2605ba
No known key found for this signature in database
2 changed files with 16 additions and 9 deletions

View File

@ -4,7 +4,7 @@
/// Alternatives: ???
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct EncryptedPayload {
#[prost(oneof="encrypted_payload::Encryption", tags="1, 2")]
#[prost(oneof="encrypted_payload::Encryption", tags="1, 2, 3")]
pub encryption: ::core::option::Option<encrypted_payload::Encryption>,
}
/// Nested message and enum types in `EncryptedPayload`.
@ -15,6 +15,8 @@ pub mod encrypted_payload {
Plaintext(super::Plaintext),
#[prost(message, tag="2")]
Doubleratchet(super::Doubleratchet),
#[prost(message, tag="3")]
Xk0(super::Xk0),
}
}
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
@ -36,4 +38,17 @@ pub struct Doubleratchet {
#[prost(string, tag="5")]
pub aux: ::prost::alloc::string::String,
}
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct Xk0 {
#[prost(bytes="bytes", tag="1")]
pub initiator_static: ::prost::bytes::Bytes,
#[prost(bytes="bytes", tag="2")]
pub initiator_ephemeral: ::prost::bytes::Bytes,
#[prost(bytes="bytes", tag="3")]
pub responder_static: ::prost::bytes::Bytes,
#[prost(bytes="bytes", tag="4")]
pub responder_ephemeral: ::prost::bytes::Bytes,
#[prost(bytes="bytes", tag="5")]
pub payload: ::prost::bytes::Bytes,
}
// @@protoc_insertion_point(module)

View File

@ -2,14 +2,6 @@
// This file is @generated by prost-build.
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct InvitePrivateV1 {
#[prost(bytes="bytes", tag="1")]
pub initiator: ::prost::bytes::Bytes,
#[prost(bytes="bytes", tag="2")]
pub initiator_ephemeral: ::prost::bytes::Bytes,
#[prost(bytes="bytes", tag="3")]
pub participant: ::prost::bytes::Bytes,
#[prost(int32, tag="4")]
pub participant_ephemeral_id: i32,
#[prost(string, tag="5")]
pub discriminator: ::prost::alloc::string::String,
#[prost(message, optional, tag="6")]