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
Hex-encoded PKP public key.
Authentication data for the PKP owner (e.g., from
ViemAccountAuthenticator.authenticate).Session keypair generated with
generateSessionKeyPair.Configures resources and expiration scoped to the delegation.
Lit client used to reach the network and request the delegation signature.
Returns
Signed delegation that can be shipped alongside the session keypair.