Skip to content

Commit

Permalink
Merge pull request #100 from xmtp/nmolnar/signed-payload
Browse files Browse the repository at this point in the history
Signed ECIES Payloads
  • Loading branch information
neekolas authored Oct 4, 2023
2 parents f1523ff + 47e6ed2 commit c03de5c
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 1 deletion.
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;
}

0 comments on commit c03de5c

Please sign in to comment.