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
Base automatically changed from feature/jss-37-optimisation-unify-shared-logic-with-an-option-to-override to naga August 26, 2025 13:02
@Ansonhkg Ansonhkg marked this pull request as ready for review October 16, 2025 17:19
Copilot AI review requested due to automatic review settings October 16, 2025 17:19
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

@Ansonhkg Ansonhkg closed this Oct 30, 2025
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.

2 participants