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 @@
8a0aafcf72f597ffac3773049bb0f37245ae0be1
44c2361d36567944da0ea6ade164f1654a3d4477
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,54 +1,4 @@
// 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 @@ -768,3 +718,53 @@ 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