Skip to content

Conversation

Ansonhkg
Copy link
Collaborator

@Ansonhkg Ansonhkg commented Aug 13, 2025

WHAT

The use case is, generating a session keypair locally, and then getting a delegation signature on it. and then giving those items to a server, so that it can generate per-request session sigs as needed.

This PR is a prerequisite to support wrapped keys.

Logic

  • If bothsessionKeyPair and delegationAuthSig are provided -> Skip generation, use them directly
  • If neither are provided -> Use current generation logic
  • If only one is provided -> Throw error

Validation

  • check the delegation is not expired
  • ensure session key pair matches what’s referenced in the session sigs

@Ansonhkg Ansonhkg self-assigned this Aug 13, 2025
@Ansonhkg Ansonhkg changed the title Feature/jss 36 naga sdk add a make a request function to take [Feature] Feature/jss 36 naga sdk add a make a request function to take Aug 13, 2025
…o-take' of github.com:LIT-Protocol/js-sdk into feature/jss-36-naga-sdk-add-a-make-a-request-function-to-take
@Ansonhkg Ansonhkg changed the base branch from naga to feature/jss-37-optimisation-unify-shared-logic-with-an-option-to-override August 25, 2025 14:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant