pub struct ChallengeRequest {
pub address: ChallengeRequestAddress,
pub chain_id: Option<String>,
pub client_id: Option<String>,
pub session_public_key: ChallengeRequestSessionPublicKey,
}Expand description
ChallengeRequest
JSON schema
{
"type": "object",
"required": [
"address",
"sessionPublicKey"
],
"properties": {
"address": {
"description": "Ethereum wallet address",
"examples": [
"0x742d35Cc6634C0532925a3b8D4060f31E2C3d8B5"
],
"type": "string",
"maxLength": 42,
"minLength": 42,
"pattern": "^0x[0-9a-fA-F]{40}$"
},
"chainId": {
"description": "Optional chain ID supplied by SDK clients",
"examples": [
"1328"
],
"type": [
"string",
"null"
]
},
"clientId": {
"description": "Optional application identifier",
"examples": [
"monaco-frontend"
],
"type": [
"string",
"null"
]
},
"sessionPublicKey": {
"description": "Lowercase hex (64 chars) ed25519 public key generated locally by the SDK. The returned challenge message will embed this key so the wallet's signature binds it; the same value must be submitted to /api/v1/auth/verify.",
"examples": [
"3b6a27bcceb6a42d62a3a8d02a6f0d73653215771de243a63ac048a18b59da29"
],
"type": "string",
"maxLength": 64,
"minLength": 64,
"pattern": "^[0-9a-f]{64}$"
}
},
"additionalProperties": false
}Fields§
§address: ChallengeRequestAddressEthereum wallet address
chain_id: Option<String>Optional chain ID supplied by SDK clients
client_id: Option<String>Optional application identifier
session_public_key: ChallengeRequestSessionPublicKeyLowercase hex (64 chars) ed25519 public key generated locally by the SDK. The returned challenge message will embed this key so the wallet’s signature binds it; the same value must be submitted to /api/v1/auth/verify.
Trait Implementations§
Source§impl Clone for ChallengeRequest
impl Clone for ChallengeRequest
Source§fn clone(&self) -> ChallengeRequest
fn clone(&self) -> ChallengeRequest
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ChallengeRequest
impl Debug for ChallengeRequest
Source§impl<'de> Deserialize<'de> for ChallengeRequest
impl<'de> Deserialize<'de> for ChallengeRequest
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ChallengeRequest
impl RefUnwindSafe for ChallengeRequest
impl Send for ChallengeRequest
impl Sync for ChallengeRequest
impl Unpin for ChallengeRequest
impl UnsafeUnpin for ChallengeRequest
impl UnwindSafe for ChallengeRequest
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more