Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Signed ECIES Payloads #100

Merged
merged 6 commits into from
Oct 4, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@
},
// protolint complains if lines are longer than length 80, display a ruler
"editor.rulers": [80]
}
}
15 changes: 15 additions & 0 deletions proto/message_contents/ecies.proto
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
// ECIES is a wrapper for ECIES payloads
syntax = "proto3";

package xmtp.message_contents;

option go_package = "github.com/xmtp/proto/v3/go/message_contents";
option java_package = "org.xmtp.proto.message.contents";

// EciesMessage is a wrapper for ECIES encrypted payloads
message EciesMessage {
oneof version {
// Expected to be an ECIES encrypted SignedPayload
bytes v1 = 1;
}
}
15 changes: 15 additions & 0 deletions proto/message_contents/signed_payload.proto
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
// Signature is a generic structure for signed byte arrays
syntax = "proto3";

package xmtp.message_contents;

import "message_contents/signature.proto";

option go_package = "github.com/xmtp/proto/v3/go/message_contents";
option java_package = "org.xmtp.proto.message.contents";

// SignedPayload is a wrapper for a signature and a payload
message SignedPayload {
bytes payload = 1;
Signature signature = 2;
}