Skip to main content

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>
FieldRule
DomainExact host of the site that asked. The wallet compares it to the caller origin (extension) or to verifiedOrigin (QR).
AddressBech32 of the account that signs. Must derive from the signature's public key.
URIMust be on that domain (https://app.example.com/… is fine; https://evil.example is not).
Version1
Chain IDThe chain the account belongs to.
Nonce8 to 128 letters or digits. createNonce() gives 32 hex characters (128 random bits). Consume once on the server.
Issued AtNot in the future (5 minutes of clock skew allowed). Default max age: 10 minutes (maxAgeMs).
Expiration TimeOptional 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.