-
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 #145 from xmtp/np/pull-beta-into-main
Bring Beta back into Main
- Loading branch information
Showing
10 changed files
with
1,473 additions
and
385 deletions.
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
Large diffs are not rendered by default.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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,37 @@ | ||
// Signature is a generic structure for public key signatures. | ||
syntax = "proto3"; | ||
|
||
package xmtp.message_contents; | ||
|
||
import "message_contents/public_key.proto"; | ||
import "message_contents/signature.proto"; | ||
|
||
option go_package = "github.com/xmtp/proto/v3/go/message_contents"; | ||
option java_package = "org.xmtp.proto.message.contents"; | ||
|
||
// The message that will be signed by the Client and returned inside the | ||
// `action_body` field of the FrameAction message | ||
message FrameActionBody { | ||
// The URL of the frame that was clicked | ||
// May be different from `post_url` | ||
string frame_url = 1; | ||
// The 1-indexed button that was clicked | ||
int32 button_index = 2; | ||
// Timestamp of the click in milliseconds since the epoch | ||
uint64 timestamp = 3; | ||
// A unique identifier for the conversation, not tied to anything on the | ||
// network. Will not match the topic or conversation_id | ||
string opaque_conversation_identifier = 4; | ||
} | ||
|
||
// The outer payload that will be sent as the `messageBytes` in the | ||
// `trusted_data` part of the Frames message | ||
message FrameAction { | ||
Signature signature = 1; | ||
// The SignedPublicKeyBundle of the signer, used to link the XMTP signature | ||
// with a blockchain account through a chain of signatures. | ||
SignedPublicKeyBundle signed_public_key_bundle = 2; | ||
// Serialized FrameActionBody message, so that the signature verification can | ||
// happen on a byte-perfect representation of the message | ||
bytes action_body = 3; | ||
} |
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
Oops, something went wrong.