mirror of
https://github.com/logos-messaging/chat_proto.git
synced 2026-01-03 21:43:08 +00:00
Remove umbra references
This commit is contained in:
parent
e7b9b4a7b5
commit
b8d83fc5f0
@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"name": "UmbraTypes",
|
"name": "WapTypes",
|
||||||
"image": "nimlang/nim",
|
"image": "nimlang/nim",
|
||||||
"customizations": {
|
"customizations": {
|
||||||
"vscode": {
|
"vscode": {
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
syntax = "proto3";
|
syntax = "proto3";
|
||||||
|
|
||||||
package umbra.common_frames;
|
package wap.common_frames;
|
||||||
|
|
||||||
message ContentFrame {
|
message ContentFrame {
|
||||||
uint32 domain = 1;
|
uint32 domain = 1;
|
||||||
@ -1,6 +1,6 @@
|
|||||||
syntax = "proto3";
|
syntax = "proto3";
|
||||||
|
|
||||||
package umbra.convos.private_v1;
|
package wap.convos.private_v1;
|
||||||
|
|
||||||
import "common_frames.proto";
|
import "common_frames.proto";
|
||||||
|
|
||||||
@ -1,6 +1,6 @@
|
|||||||
syntax = "proto3";
|
syntax = "proto3";
|
||||||
|
|
||||||
package umbra.encryption;
|
package wap.encryption;
|
||||||
|
|
||||||
|
|
||||||
message EncryptedPayload {
|
message EncryptedPayload {
|
||||||
@ -1,6 +1,6 @@
|
|||||||
syntax = "proto3";
|
syntax = "proto3";
|
||||||
|
|
||||||
package umbra.envelope;
|
package wap.envelope;
|
||||||
|
|
||||||
|
|
||||||
///////////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////////
|
||||||
@ -1,6 +1,6 @@
|
|||||||
syntax = "proto3";
|
syntax = "proto3";
|
||||||
|
|
||||||
package umbra.inbox;
|
package wap.inbox;
|
||||||
|
|
||||||
import "invite.proto";
|
import "invite.proto";
|
||||||
|
|
||||||
@ -1,6 +1,6 @@
|
|||||||
syntax = "proto3";
|
syntax = "proto3";
|
||||||
|
|
||||||
package umbra.invite;
|
package wap.invite;
|
||||||
|
|
||||||
message InvitePrivateV1 {
|
message InvitePrivateV1 {
|
||||||
repeated string participants = 1;
|
repeated string participants = 1;
|
||||||
@ -1,6 +1,6 @@
|
|||||||
syntax = "proto3";
|
syntax = "proto3";
|
||||||
|
|
||||||
package umbra.reliability;
|
package wap.reliability;
|
||||||
|
|
||||||
///////////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////////
|
||||||
// SDS Payloads
|
// SDS Payloads
|
||||||
@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"name": "Rust-UmbraTypes",
|
"name": "Rust-WapTypes",
|
||||||
"image": "mcr.microsoft.com/devcontainers/rust:latest",
|
"image": "mcr.microsoft.com/devcontainers/rust:latest",
|
||||||
"customizations": {
|
"customizations": {
|
||||||
"vscode": {
|
"vscode": {
|
||||||
|
|||||||
14
rust/Cargo.lock
generated
14
rust/Cargo.lock
generated
@ -401,7 +401,13 @@ dependencies = [
|
|||||||
]
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "umbra-types"
|
name = "unicode-ident"
|
||||||
|
version = "1.0.18"
|
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
|
checksum = "5a5f39404a5da50712a4c1eecf25e90dd62b613502b7e925fd4e4d19b5c96512"
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "wap-types"
|
||||||
version = "0.0.2-dev"
|
version = "0.0.2-dev"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"bytes 0.4.12",
|
"bytes 0.4.12",
|
||||||
@ -410,12 +416,6 @@ dependencies = [
|
|||||||
"protoc-rust",
|
"protoc-rust",
|
||||||
]
|
]
|
||||||
|
|
||||||
[[package]]
|
|
||||||
name = "unicode-ident"
|
|
||||||
version = "1.0.18"
|
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
||||||
checksum = "5a5f39404a5da50712a4c1eecf25e90dd62b613502b7e925fd4e4d19b5c96512"
|
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "wasi"
|
name = "wasi"
|
||||||
version = "0.14.2+wasi-0.2.4"
|
version = "0.14.2+wasi-0.2.4"
|
||||||
|
|||||||
@ -1,11 +1,11 @@
|
|||||||
[workspace]
|
[workspace]
|
||||||
|
|
||||||
members = [
|
members = [
|
||||||
"umbra-types"
|
"wap-types"
|
||||||
]
|
]
|
||||||
|
|
||||||
default-members = [
|
default-members = [
|
||||||
"umbra-types"
|
"wap-types"
|
||||||
]
|
]
|
||||||
|
|
||||||
resolver = "3"
|
resolver = "3"
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "umbra-types"
|
name = "wap-types"
|
||||||
edition = "2024"
|
edition = "2024"
|
||||||
version = "0.0.2-dev"
|
version = "0.0.2-dev"
|
||||||
|
|
||||||
@ -13,7 +13,7 @@ fn get_proto_dir() -> PathBuf {
|
|||||||
proto_root_dir.pop();
|
proto_root_dir.pop();
|
||||||
proto_root_dir.pop();
|
proto_root_dir.pop();
|
||||||
proto_root_dir.push("proto");
|
proto_root_dir.push("proto");
|
||||||
proto_root_dir.push("umbra");
|
proto_root_dir.push("wap");
|
||||||
|
|
||||||
println!("proto_dir: {:?}", proto_root_dir);
|
println!("proto_dir: {:?}", proto_root_dir);
|
||||||
proto_root_dir
|
proto_root_dir
|
||||||
@ -1,6 +1,6 @@
|
|||||||
pub mod payload;
|
pub mod payload;
|
||||||
|
|
||||||
pub use payload::types::umbra::*;
|
pub use payload::types::wap::*;
|
||||||
|
|
||||||
#[cfg(test)]
|
#[cfg(test)]
|
||||||
|
|
||||||
@ -3,12 +3,12 @@ pub mod types {
|
|||||||
}
|
}
|
||||||
|
|
||||||
use prost::Message;
|
use prost::Message;
|
||||||
pub use types::umbra::*;
|
pub use types::wap::*;
|
||||||
|
|
||||||
use crate::{
|
use crate::{
|
||||||
convos::private_v1::{PrivateV1Frame, private_v1_frame},
|
convos::private_v1::{PrivateV1Frame, private_v1_frame},
|
||||||
encryption::EncryptedPayload,
|
encryption::EncryptedPayload,
|
||||||
envelope::UmbraEnvelopeV1,
|
envelope::WapEnvelopeV1,
|
||||||
inbox::{InboxV1Frame, inbox_v1_frame},
|
inbox::{InboxV1Frame, inbox_v1_frame},
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -32,12 +32,12 @@ impl InboxV1Frame {
|
|||||||
}
|
}
|
||||||
|
|
||||||
pub trait ToEnvelope {
|
pub trait ToEnvelope {
|
||||||
fn to_envelope(self, conversation_id: String, salt: u64) -> UmbraEnvelopeV1;
|
fn to_envelope(self, conversation_id: String, salt: u64) -> WapEnvelopeV1;
|
||||||
}
|
}
|
||||||
|
|
||||||
impl ToEnvelope for EncryptedPayload {
|
impl ToEnvelope for EncryptedPayload {
|
||||||
fn to_envelope(self, conversation_id: String, salt: u64) -> UmbraEnvelopeV1 {
|
fn to_envelope(self, conversation_id: String, salt: u64) -> WapEnvelopeV1 {
|
||||||
UmbraEnvelopeV1 {
|
WapEnvelopeV1 {
|
||||||
conversation_hint: conversation_id, // TODO
|
conversation_hint: conversation_id, // TODO
|
||||||
salt,
|
salt,
|
||||||
payload: self.encode_to_vec(), // Avoid allocation here?
|
payload: self.encode_to_vec(), // Avoid allocation here?
|
||||||
@ -1,5 +1,5 @@
|
|||||||
---
|
---
|
||||||
title: <PROTO>>
|
title: Waku Application Protocol
|
||||||
name: A private decentralized messaging protocol for multiple usecases.
|
name: A private decentralized messaging protocol for multiple usecases.
|
||||||
category: Standards Track
|
category: Standards Track
|
||||||
status: raw
|
status: raw
|
||||||
@ -56,7 +56,6 @@ There exists a circular dependency in initializing a Conversation. Conversations
|
|||||||
|
|
||||||
To resolve this all clients MUST implement a default [Inbox](./inbox.md) to receive initial messages. The default inbox allows clients to discover new conversations asynchronously without prior coordination. By listening in a static location.
|
To resolve this all clients MUST implement a default [Inbox](./inbox.md) to receive initial messages. The default inbox allows clients to discover new conversations asynchronously without prior coordination. By listening in a static location.
|
||||||
|
|
||||||
|
|
||||||
The default inbox MUST be configured with the parameters:
|
The default inbox MUST be configured with the parameters:
|
||||||
- **inbox_addr:** `client_address`
|
- **inbox_addr:** `client_address`
|
||||||
- **discriminator:** "default"
|
- **discriminator:** "default"
|
||||||
@ -86,7 +85,7 @@ The wire format is specified using protocol buffers v3.
|
|||||||
|
|
||||||
```protobuf
|
```protobuf
|
||||||
|
|
||||||
message UmbraEnvelopeV1 {
|
message WapEnvelopeV1 {
|
||||||
|
|
||||||
string conversation_hint = 1;
|
string conversation_hint = 1;
|
||||||
uint32 salt = 2;
|
uint32 salt = 2;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user