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

feat: use fhevm deployer private key for deployment #552

Merged
merged 1 commit into from
Oct 4, 2024
Merged

Conversation

jatZama
Copy link
Member

@jatZama jatZama commented Oct 4, 2024

Now instead of using the mnemonic+signers[9] for the fhevm deployer, I am using a new env variable PRIVATE_KEY_FHEVM_DEPLOYER.
I also updated the launch-fhevm.sh.
Also I added an optional argument useAddress to be used in the task:addSigners when adding the KMS signers after deployment of KMSVerifier, this will fetch addresses env variables from the .env instead of private keys for the kms signers.
I also did some cleaning, like renaming computePredeployAddress to computeGatewayAddress, removed obsolete tasks, moved old obsolete contracts in legacy folder etc.

export PRIVATE_KEY_KMS_SIGNER_1="bbaed91514fa4b7c86aa4f73becbabcf4bce0ae130240f0d6ac3f87e06812440"
export PRIVATE_KEY_KMS_SIGNER_2="1bfa3e2233b0103ad67954a728b246c528916791f7fab4894ff361e3937b47e1"
export PRIVATE_KEY_KMS_SIGNER_3="7a604eed8cf4a43277d192aa0c7894d368577a4021e52bf45420f256e34c7dd7"
export ADDRESS_KMS_SIGNER_0="0x0971C80fF03B428fD2094dd5354600ab103201C5"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very useful to have the address instead of the private key, in real context we are adding Ethereum addresses!

Copy link
Contributor

@leventdem leventdem left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We were waiting such PR to clean the predeployment step!
+1

chore: cleanup README

feat: add option to pass addresses for kms signers instead of private keys

chore: typo and cleanup in sh script
@jatZama jatZama merged commit 3823ba1 into main Oct 4, 2024
2 of 3 checks passed
@jatZama jatZama deleted the deploymentTasks branch October 4, 2024 14:16
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.

2 participants