Generate code

This commit is contained in:
Jazz Turner-Baggs 2026-01-20 16:17:24 -08:00
parent aaa93719ce
commit c97bad8608
No known key found for this signature in database
2 changed files with 20 additions and 14 deletions

View File

@ -1,7 +1,5 @@
// @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, 3")]
@ -16,7 +14,7 @@ pub mod encrypted_payload {
#[prost(message, tag="2")]
Doubleratchet(super::Doubleratchet),
#[prost(message, tag="3")]
Xk0(super::Xk0),
InboxHandshake(super::InboxHandshakeV1),
}
}
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
@ -39,17 +37,25 @@ pub struct Doubleratchet {
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,
pub struct InboxHandshakeV1 {
#[prost(message, optional, tag="1")]
pub header: ::core::option::Option<inbox_handshake_v1::InboxHeaderV1>,
#[prost(bytes="bytes", tag="2")]
pub initiator_ephemeral: ::prost::bytes::Bytes,
#[prost(bytes="bytes", tag="3")]
pub responder_static: ::prost::bytes::Bytes,
/// Replace with RKI to save bytes
#[prost(bytes="bytes", tag="4")]
pub responder_ephemeral: ::prost::bytes::Bytes,
#[prost(bytes="bytes", tag="5")]
pub payload: ::prost::bytes::Bytes,
}
/// Nested message and enum types in `InboxHandshakeV1`.
pub mod inbox_handshake_v1 {
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct InboxHeaderV1 {
#[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,
/// Replace with RKI to save bytes
#[prost(bytes="bytes", tag="4")]
pub responder_ephemeral: ::prost::bytes::Bytes,
}
}
// @@protoc_insertion_point(module)

View File

@ -8,7 +8,7 @@ message EncryptedPayload {
oneof encryption {
encryption.Plaintext plaintext = 1;
encryption.Doubleratchet doubleratchet = 2;
encryption.XK0 xk0 = 3;
encryption.InboxHandshakeV1 inbox_handshake = 3;
}
}