Skip to content
Open
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 crates/xmtp_proto/proto_version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
845ad62c2285c531dcd775a769ebb0e7fe611eea
f04e01a9f97af67a3b6fe8419b534c237a2ea590
Binary file modified crates/xmtp_proto/src/gen/proto_descriptor.bin
Binary file not shown.
100 changes: 50 additions & 50 deletions crates/xmtp_proto/src/gen/xmtp.message_api.v1.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,54 @@
// This file is @generated by prost-build.
/// Token is used by clients to prove to the nodes
/// that they are serving a specific wallet.
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct Token {
/// identity key signed by a wallet
#[prost(message, optional, tag = "1")]
pub identity_key: ::core::option::Option<super::super::message_contents::PublicKey>,
/// encoded bytes of AuthData
#[prost(bytes = "vec", tag = "2")]
pub auth_data_bytes: ::prost::alloc::vec::Vec<u8>,
/// identity key signature of AuthData bytes
#[prost(message, optional, tag = "3")]
pub auth_data_signature: ::core::option::Option<
super::super::message_contents::Signature,
>,
}
impl ::prost::Name for Token {
const NAME: &'static str = "Token";
const PACKAGE: &'static str = "xmtp.message_api.v1";
fn full_name() -> ::prost::alloc::string::String {
"xmtp.message_api.v1.Token".into()
}
fn type_url() -> ::prost::alloc::string::String {
"/xmtp.message_api.v1.Token".into()
}
}
/// AuthData carries token parameters that are authenticated
/// by the identity key signature.
/// It is embedded in the Token structure as bytes
/// so that the bytes don't need to be reconstructed
/// to verify the token signature.
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct AuthData {
/// address of the wallet
#[prost(string, tag = "1")]
pub wallet_addr: ::prost::alloc::string::String,
/// time when the token was generated/signed
#[prost(uint64, tag = "2")]
pub created_ns: u64,
}
impl ::prost::Name for AuthData {
const NAME: &'static str = "AuthData";
const PACKAGE: &'static str = "xmtp.message_api.v1";
fn full_name() -> ::prost::alloc::string::String {
"xmtp.message_api.v1.AuthData".into()
}
fn type_url() -> ::prost::alloc::string::String {
"/xmtp.message_api.v1.AuthData".into()
}
}
/// This is based off of the go-waku Index type, but with the
/// receiverTime and pubsubTopic removed for simplicity.
/// Both removed fields are optional
Expand Down Expand Up @@ -718,53 +768,3 @@ pub mod message_api_server {
const NAME: &'static str = SERVICE_NAME;
}
}
/// Token is used by clients to prove to the nodes
/// that they are serving a specific wallet.
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct Token {
/// identity key signed by a wallet
#[prost(message, optional, tag = "1")]
pub identity_key: ::core::option::Option<super::super::message_contents::PublicKey>,
/// encoded bytes of AuthData
#[prost(bytes = "vec", tag = "2")]
pub auth_data_bytes: ::prost::alloc::vec::Vec<u8>,
/// identity key signature of AuthData bytes
#[prost(message, optional, tag = "3")]
pub auth_data_signature: ::core::option::Option<
super::super::message_contents::Signature,
>,
}
impl ::prost::Name for Token {
const NAME: &'static str = "Token";
const PACKAGE: &'static str = "xmtp.message_api.v1";
fn full_name() -> ::prost::alloc::string::String {
"xmtp.message_api.v1.Token".into()
}
fn type_url() -> ::prost::alloc::string::String {
"/xmtp.message_api.v1.Token".into()
}
}
/// AuthData carries token parameters that are authenticated
/// by the identity key signature.
/// It is embedded in the Token structure as bytes
/// so that the bytes don't need to be reconstructed
/// to verify the token signature.
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct AuthData {
/// address of the wallet
#[prost(string, tag = "1")]
pub wallet_addr: ::prost::alloc::string::String,
/// time when the token was generated/signed
#[prost(uint64, tag = "2")]
pub created_ns: u64,
}
impl ::prost::Name for AuthData {
const NAME: &'static str = "AuthData";
const PACKAGE: &'static str = "xmtp.message_api.v1";
fn full_name() -> ::prost::alloc::string::String {
"xmtp.message_api.v1.AuthData".into()
}
fn type_url() -> ::prost::alloc::string::String {
"/xmtp.message_api.v1.AuthData".into()
}
}
Loading