Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make session signatures compatible with SIWE ReCap #18

Closed
wants to merge 3 commits into from

Conversation

hwrdtm
Copy link
Contributor

@hwrdtm hwrdtm commented Jan 31, 2023

What

  • This PR makes the getSessionSigs function of @lit-protocol/lit-node-client compatible with EIP-5573 SIWE ReCap.
  • Also, the specific logic to do with how the capability objects are represented are abstracted away into a new package, @lit-protocol/auth so that the concerns are better separated from @lit-protocol/lit-node-client and are more localized. We know for sure that the ReCap standard will have at least one upcoming change as they become more compatible with UCANs.
  • Refactored GetSessionSigProps to be in @lit-protocol/lit-node-client to avoid cyclical dependency tree and also better separation of concerns as, that belongs to the function call specific to the LitNodeClient anyways.

Testing

Unit tests are implemented.

  • yarn test:packages

There will be further changes required and we should separate the logic out into its own package to localize this module with less concerns.
@hwrdtm hwrdtm self-assigned this Jan 31, 2023
@glitch003
Copy link
Collaborator

@hwrdtm this looks good. but is this live on the node yet? we have to handle it there too, right? or is there a PR?

@hwrdtm
Copy link
Contributor Author

hwrdtm commented Apr 28, 2023

Closing in favor of #88

@hwrdtm hwrdtm closed this Apr 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants