remove umbra references

This commit is contained in:
Jazz Turner-Baggs 2025-07-11 14:46:05 -07:00
parent f563c5d316
commit be89da9afc
10 changed files with 13 additions and 13 deletions

View File

@ -1,6 +1,6 @@
syntax = "proto3";
package umbra.common_frames;
package wap.common_frames;
message ContentFrame {
uint32 domain = 1;

View File

@ -1,6 +1,6 @@
syntax = "proto3";
package umbra.convos.group_v1;
package wap.convos.group_v1;
import "base.proto";
import "common_frames.proto";

View File

@ -1,6 +1,6 @@
syntax = "proto3";
package umbra.convos.private_v1;
package wap.convos.private_v1;
import "common_frames.proto";

View File

@ -1,6 +1,6 @@
syntax = "proto3";
package umbra.encryption;
package wap.encryption;
// TODO: This also encompasses plaintexts, is there a better name?

View File

@ -1,13 +1,13 @@
syntax = "proto3";
package umbra.envelope;
package wap.envelope;
///////////////////////////////////////////////////////////////////////////////
// Payload Framing Messages
///////////////////////////////////////////////////////////////////////////////
message UmbraEnvelopeV1 {
message WapEnvelopeV1 {
string conversation_hint = 1;
uint64 salt = 2;

View File

@ -1,6 +1,6 @@
syntax = "proto3";
package umbra.inbox;
package wap.inbox;
import "invite.proto";

View File

@ -1,6 +1,6 @@
syntax = "proto3";
package umbra.invite;
package wap.invite;
message InvitePrivateV1 {
bytes initiator = 1;

View File

@ -1,6 +1,6 @@
syntax = "proto3";
package umbra.reliability;
package wap.reliability;
///////////////////////////////////////////////////////////////////////////////
// SDS Payloads

View File

@ -158,9 +158,9 @@ proc get_conversation(self: Client,
proc recv*(self: var Client, transport_message: TransportMessage): seq[
TransportMessage] =
## Reveives a incomming payload, decodes it, and processes it.
let res_env = decode(transport_message.payload, UmbraEnvelopeV1)
let res_env = decode(transport_message.payload, WapEnvelopeV1)
if res_env.isErr:
raise newException(ValueError, "Failed to decode UmbraEnvelopeV1: " & res_env.error)
raise newException(ValueError, "Failed to decode WapEnvelopeV1: " & res_env.error)
let env = res_env.get()
let res_convo = self.get_conversation(env.conversation_hint)

View File

@ -22,11 +22,11 @@ proc initInbox*(inbox_addr: string, invite_callback: InviteCallback): Inbox =
proc encrypt*(frame: InboxV1Frame): EncryptedPayload =
return encrypt_plain(frame)
proc wrap_env*(payload: EncryptedPayload, convo_id: string): UmbraEnvelopeV1 =
proc wrap_env*(payload: EncryptedPayload, convo_id: string): WapEnvelopeV1 =
let bytes = encode(payload)
let salt = generateSalt()
return UmbraEnvelopeV1(
return WapEnvelopeV1(
payload: bytes,
salt: salt,
conversation_hint: convo_id,