Unlock the desk

Unlock the desk

Two signatures open the desk: one signs you in, one derives the keys that seal envelopes and sign quotes. Neither is a transaction.

  1. Connect a wallet

    Open /desk and pick a Solana wallet.

  2. Sign in

    The wallet shows a Sign-In With Solana message with a one-line statement, shown below, the site’s domain, a one-time nonce and an expiry. Signing it proves you hold the wallet, and the desk opens a session for it.

  3. Derive your desk key

    Press Derive the key, and the wallet shows the key message below. The browser derives your desk key from the signature and registers its public halves with the desk, which unlocks it.

The sign-in statement

Sign in to Aside.

The key message

Aside desk key v1

Signing this derives your desk keys in this browser. It is not a transaction and costs nothing.

What the browser derives

The wallet’s 64-byte signature over the key message is the input to HKDF-SHA256 with the salt aside/desk-key/v1. Two 32-byte outputs come from it:

KeyInfo stringTypeUsed for
Sealing keysealX25519Sealing requests and quotes to others, and opening the ones sealed to you
Quote keyquoteEd25519 (from the seed)Signing quotes, as a maker

Both secret keys stay in the browser. The desk receives only the two public keys, through POST /v1/keys, and lists them beside your wallet address so takers can seal to you and check your quotes.

A wallet signs the same message the same way every time, so unlocking from another browser derives the same keys.

Why a separate quote key

A maker signs a quote with its quote key, not its wallet, so quoting is one press with no wallet prompt. The program accepts a quote only if it was signed by the quote key registered in the maker’s on-chain account. Registering as a maker writes your quote key into that account; see Inventory.

Signing out

Signing out ends the session on the desk server. The keys can be derived again at any time by signing the key message.