Skip to main content

Function

generatePkpDelegationAuthSig(params)
Creates a delegation signature that authorises a session key to act on behalf of a PKP. Use this in server or pre-generation flows where you want to prepare session materials ahead of time.

Parameters

string
required
Hex-encoded PKP public key.
AuthData
required
Authentication data for the PKP owner (e.g., from ViemAccountAuthenticator.authenticate).
SessionKeyPair
required
Session keypair generated with generateSessionKeyPair.
AuthConfigV2
required
Configures resources and expiration scoped to the delegation.
LitClient
required
Lit client used to reach the network and request the delegation signature.

Returns

AuthSig
Signed delegation that can be shipped alongside the session keypair.

Example