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 xmtp_proto/proto_version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
f5fc12ac686a11c2c2b006c03a07fcc4bf6ec5ea
5795d0e7e2ef9ea2a13b90b1ff0dd63784030597
Binary file modified xmtp_proto/src/gen/proto_descriptor.bin
Binary file not shown.
100 changes: 50 additions & 50 deletions 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