This commit is contained in:
Jazz Turner-Baggs 2026-01-14 23:18:25 -08:00
parent e34c2605ba
commit 2fc0a52b6b
No known key found for this signature in database
5 changed files with 6 additions and 10 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
/rust/target

View File

@ -46,6 +46,7 @@ pub struct Xk0 {
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")]

View File

@ -7,19 +7,15 @@ pub struct Note {
}
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct InboxV1Frame {
#[prost(string, tag="1")]
pub recipient: ::prost::alloc::string::String,
#[prost(oneof="inbox_v1_frame::FrameType", tags="10, 11")]
#[prost(oneof="inbox_v1_frame::FrameType", tags="1")]
pub frame_type: ::core::option::Option<inbox_v1_frame::FrameType>,
}
/// Nested message and enum types in `InboxV1Frame`.
pub mod inbox_v1_frame {
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Oneof)]
pub enum FrameType {
#[prost(message, tag="10")]
#[prost(message, tag="1")]
InvitePrivateV1(super::super::invite::InvitePrivateV1),
#[prost(message, tag="11")]
Note(super::Note),
}
}
// @@protoc_insertion_point(module)

View File

@ -30,6 +30,6 @@ message XK0 {
bytes initiator_static = 1;
bytes initiator_ephemeral = 2;
bytes responder_static = 3;
bytes responder_ephemeral = 4;
bytes responder_ephemeral = 4; // Replace with RKI to save bytes
bytes payload = 5;
}

View File

@ -9,9 +9,7 @@ message Note{
}
message InboxV1Frame {
string recipient = 1;
oneof frame_type {
invite.InvitePrivateV1 invite_private_v1 = 10;
Note note = 11;
invite.InvitePrivateV1 invite_private_v1 = 1;
}
}