-
Notifications
You must be signed in to change notification settings - Fork 1
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
Extend OpenZeppelin Cairo Contract to Support Multiple Signers #14
Comments
This looks good. Worth noting the Stark Pair is the native curve and can be generated on the rust side simply with https://github.com/xJonathanLEI/starknet-rs and verified inside cairo with syscalls Regarding the The approach was for the first element in the signature to signify the key. 0 for default or otherwise mapped to a boolean if set by the public key. In contrast to the existing implementation, where it only supports a single webauthn signer and arbitrary stark pairs, we would like this one to support multiple webauthn credentials and session tokens too. Accounts should be able to add other signers. For the session token, the flow is:
|
Do you know: |
The question is referring specifically to this piece of code |
Underscored Methods:
|
Description
We need to expand the current account contract available at OpenZeppelin's cairo-contracts. This enhancement will allow it to support WebAuth signers and session tokens. Additionally, for better integration with our project, we should import the open-zeppelin repository into the scarb project and introduce the modified version of this contract within our repo.
Objectives
Multiple Signer Support: The extended account contract should seamlessly integrate:
Signature Data Enhancement: When signatures are made, the type of signer employed must be evident within the signature data.
Default Signer: On account registration, the default signer should be set to the WebAuthn signer.
Proposal Creation: Before embarking on such a significant task, drafting a proposal detailing the changes and the new interface can act as a foundation for the development. This blueprint will ensure alignment among all team members.
Acceptance Criteria
Suggested Development Order
Migrate Account Smart Contract to starknet-foundry Project - Issue #16
14-1-foundry-account
Enhance Contract with Stark Pair Integration - Issue #19
14-2-stark-pair-auth
Enhance Contract with WebAuthn Signer - Issue #17
14-3-webauthn
Enhance Contract with Session Tokens Integration - Issue #18
14-4-sessions
Enhance Account Contract to Support Multiple WebAuthn Credentials and Session Tokens - Issue #20
14-5-multi-webauthn
The text was updated successfully, but these errors were encountered: