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

Enhance Contract with Session Tokens Integration #18

Open
neotheprogramist opened this issue Oct 5, 2023 · 0 comments
Open

Enhance Contract with Session Tokens Integration #18

neotheprogramist opened this issue Oct 5, 2023 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@neotheprogramist
Copy link
Member

neotheprogramist commented Oct 5, 2023

Description

To augment the capabilities of our contract, we aim to incorporate the Session Tokens we had previously devised.

Background

Session Token Flow

For the session token, the process will be as follows:

  1. Construct the session token payload.
  2. Generate a stark pair key.
  3. Sign the session token root hash.
  4. Register the stark pair with the account contract, leveraging webauthn to authenticate and sign the transaction.

Tasks

1. Contract Review

  • Thoroughly inspect and familiarize oneself with the current specifications of the contract from cairo-webauthn #16.

2. Session Tokens Assessment

3. Implement Session Token Flow

  • Begin by constructing the session token payload based on the required data points.
  • Follow the process to generate a stark pair key.
  • Utilize the generated stark pair key to sign the session token root hash.
  • Finally, register the stark pair with the existing account contract, making sure to use webauthn for transaction authentication and signing.

4. Integrate Session Tokens

  • Seamlessly embed the Session Tokens into the extant contract structure.
  • Ensure holistic compatibility and robustness post-integration.

5. Testing

  • Conduct comprehensive tests subsequent to the integration to validate that the contract with the Session Tokens functions as anticipated.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

When branches are created from issues, their pull requests are automatically linked.

3 participants