pub struct VerifyRequest {
pub address: VerifyRequestAddress,
pub chain_id: Option<String>,
pub client_id: Option<String>,
pub nonce: VerifyRequestNonce,
pub referral_code: Option<String>,
pub session_public_key: VerifyRequestSessionPublicKey,
pub signature: VerifyRequestSignature,
}Expand description
VerifyRequest
JSON schema
{
"type": "object",
"required": [
"address",
"nonce",
"sessionPublicKey",
"signature"
],
"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"
]
},
"nonce": {
"description": "Challenge nonce",
"examples": [
"abc123def456"
],
"type": "string",
"minLength": 1
},
"referralCode": {
"description": "Optional PitPass TraderCode captured at signup (e.g. from a `?ref=CODE` link). When a user verifies for the very first time with a valid code, a referral relationship is recorded atomically. Ignored for users who already exist, and silently ignored if the code is unknown — a bad code never blocks sign-in.",
"examples": [
"0x1234567890abcdef1234567890abcdef12345678"
],
"type": [
"string",
"null"
]
},
"sessionPublicKey": {
"description": "Lowercase hex (64 chars) ed25519 public key generated locally by the SDK. Subsequent authenticated requests are signed with the matching private key. The wallet's signature on the challenge message proves the user authorized this specific public key.",
"examples": [
"3b6a27bcceb6a42d62a3a8d02a6f0d73653215771de243a63ac048a18b59da29"
],
"type": "string",
"maxLength": 64,
"minLength": 64,
"pattern": "^[0-9a-f]{64}$"
},
"signature": {
"description": "Wallet signature over the challenge message",
"examples": [
"0x1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6e7f8a9b0c1d2e3f4a5b6c7d8e9f0a1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6e7f8a9b0c1d2e3f4a5b6c7d8e9f0"
],
"type": "string",
"minLength": 1
}
},
"additionalProperties": false
}Fields§
§address: VerifyRequestAddressEthereum wallet address
chain_id: Option<String>Optional chain ID supplied by SDK clients
client_id: Option<String>Optional application identifier
nonce: VerifyRequestNonceChallenge nonce
referral_code: Option<String>Optional PitPass TraderCode captured at signup (e.g. from a ?ref=CODE link). When a user verifies for the very first time with a valid code, a referral relationship is recorded atomically. Ignored for users who already exist, and silently ignored if the code is unknown — a bad code never blocks sign-in.
session_public_key: VerifyRequestSessionPublicKeyLowercase hex (64 chars) ed25519 public key generated locally by the SDK. Subsequent authenticated requests are signed with the matching private key. The wallet’s signature on the challenge message proves the user authorized this specific public key.
signature: VerifyRequestSignatureWallet signature over the challenge message
Trait Implementations§
Source§impl Clone for VerifyRequest
impl Clone for VerifyRequest
Source§fn clone(&self) -> VerifyRequest
fn clone(&self) -> VerifyRequest
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 VerifyRequest
impl Debug for VerifyRequest
Source§impl<'de> Deserialize<'de> for VerifyRequest
impl<'de> Deserialize<'de> for VerifyRequest
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 VerifyRequest
impl RefUnwindSafe for VerifyRequest
impl Send for VerifyRequest
impl Sync for VerifyRequest
impl Unpin for VerifyRequest
impl UnsafeUnpin for VerifyRequest
impl UnwindSafe for VerifyRequest
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