Skip to content

[Draft] feat: update SDK to expect random account id#79

Closed
cpb8010 wants to merge 1 commit intomainfrom
no-account-id
Closed

[Draft] feat: update SDK to expect random account id#79
cpb8010 wants to merge 1 commit intomainfrom
no-account-id

Conversation

@cpb8010
Copy link
Contributor

@cpb8010 cpb8010 commented Feb 26, 2025

[Draft] linked to: matter-labs/zksync-sso-clave-contracts#309

Description

The ability to front-run an account id was undesirable, so we're removing the ability to read back the account id directly and instead merging it with the deployment salt that determines the account address.

For applications that do need to embed their own account id to perform a non-passkey account lookup, it will be slightly more effort to find the account unique id.

Additional context

This is 1 of 3 changes breaking the contract ABI, so these other two should merge first before this makes more progress (to avoid merge conficts)

  • Multiple passkey support changing the signature PR
  • Passkey recovery doing a lookup on the passkey module PR
  • Removing the salt from the account creation (this change)

This is clearly incomplete, but this conflicts with lots of other
changes to how the SDK interacts with the contracts
@cpb8010 cpb8010 self-assigned this Feb 26, 2025
@cpb8010 cpb8010 added the enhancement New feature or request label Feb 26, 2025
@github-actions
Copy link

Visit the preview URL for this PR (updated for commit 6e42a17):

https://zksync-auth-server-staging--pr79-no-account-id-5u3midya.web.app

(expires Wed, 05 Mar 2025 08:55:29 GMT)

🔥 via Firebase Hosting GitHub Action 🌎

Sign: 509a9c9ea42583076f531c53cf2979c544d5d0b7

@cpb8010
Copy link
Contributor Author

cpb8010 commented Mar 6, 2025

Combining into #58

@cpb8010 cpb8010 closed this Mar 6, 2025
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

Successfully merging this pull request may close these issues.

1 participant