Skip to content

feat: create a session key authenticatorΒ #606

@bonustrack

Description

@bonustrack

We should create a new authenticator that works with session key. Here are the requirements:

  • Session keys would always be Starkkey generated in user browser
  • It should be possible to authenticate on the contract with a tx from L1, authentication should be only from the chainId where it was initiated.
  • It should be possible to authenticate with an Ethereum signature which would work on any chain (for EOAs)
  • It should be possible to authenticate with a Starknet wallet doing a signature
  • We should have a way to revoke a session key with the session key itself or native account
  • Do we need expiration?

We may want to look into Argent on how they dealing with session keys and if there is a way to integrate in their system, I think there is or will be some support in Argent X for session key, which would be great to be compatible with.

This is still a draft, ideally we should iterate on this and figure out a flow and interface before starting the integration.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

Status

πŸ—’οΈ Backlog

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions