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

[onchain] Factory creation #81

Merged
merged 4 commits into from
Jun 1, 2024

Conversation

0xChqrles
Copy link
Contributor

Introduction of the Factory to deploy blank accounts without calldata and upgrade them to the actual vault account.
The deployment method is protected and only callable by the owner.

This factory allows to have fully deterministic vault accounts addresses based on the salt used. This way, if we use a hash of the phone number, all future Vault accounts have a deterministic address that we can fund even if the user doesn't have an account yet.

The blank account is useful in case we want to update the Vault Account. By using the intermediate class hash of the Blank account for the deployment, we can update the Vault account class hash without breaking compatibility with previous address determination algo.

Copy link

vercel bot commented Jun 1, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
vault ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 1, 2024 8:56am

@0xChqrles 0xChqrles merged commit 37b435d into keep-starknet-strange:main Jun 1, 2024
3 of 5 checks passed
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.

1 participant