Are you an LLM? Read llms.txt for a summary of the docs, or llms-full.txt for the full context.
Skip to content

SigningSession

A session-key bundle. Pair the ephemeral session key with the primary-key authorization that legitimizes it.

Definition

type SigningSession = {
  publicKey: Uint8Array
  privateKey: Uint8Array
  keyHash: string
  sessionInfo: SigningSessionInfo
  authorization: StandardCredential
}
 
type SigningSessionInfo = {
  chainId: string
  sessionKey: Base64
  expireAt: string  // seconds, as string
}

Fields

publicKeyUint8Array. Session key's public bytes.

privateKeyUint8Array. Session key's private bytes.

keyHashstring. The primary key's hash (used to look up the authorization on chain).

sessionInfoSigningSessionInfo. Chain id, session pubkey, expiry.

authorizationStandardCredential. The primary key's signature over sessionInfo.

Construction

Use createSession on a signer client to mint a bundle, then persist it.

See also