Sign-in message
CAIP-122-style text, signed as ADR-036. Built by buildSignInMessage / session.signIn(), parsed by parseSignInMessage, checked by verifySignIn.
<domain> wants you to sign in with your Cosmos account:
<address>
<optional statement>
URI: <uri>
Version: 1
Chain ID: <chain-id>
Nonce: <hex>
Issued At: <ISO-8601>
Expiration Time: <ISO-8601> # optional, always set by session.signIn()
Not Before: <ISO-8601> # optional
Request ID: <text> # optional
Resources: # optional
- <uri>
| Field | Rule |
|---|---|
| Domain | Exact host of the site that asked. The wallet compares it to the caller origin (extension) or to verifiedOrigin (QR). |
| Address | Bech32 of the account that signs. Must derive from the signature's public key. |
| URI | Must be on that domain (https://app.example.com/… is fine; https://evil.example is not). |
| Version | 1 |
| Chain ID | The chain the account belongs to. |
| Nonce | 8 to 128 letters or digits. createNonce() gives 32 hex characters (128 random bits). Consume once on the server. |
| Issued At | Not in the future (5 minutes of clock skew allowed). Default max age: 10 minutes (maxAgeMs). |
| Expiration Time | Optional in the format. session.signIn() always sets it, by default 10 minutes after issue. Must be in the future at verify time. |
looksLikeSignIn is what the wallet uses to decide between the sign-in screen and a generic arbitrary-data screen. checkSignInBinding is the domain/URI rule wallets must run before signing.
Vectors: test-vectors/sign-in-vectors.json in the @zunialab/sdk-core package.