-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #100 from xmtp/nmolnar/signed-payload
Signed ECIES Payloads
- Loading branch information
Showing
3 changed files
with
31 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,4 +7,4 @@ | |
}, | ||
// protolint complains if lines are longer than length 80, display a ruler | ||
"editor.rulers": [80] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} |