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

how to generate MPC keys? #29

Closed
0xBEEFCAF3 opened this issue Jan 28, 2024 · 5 comments
Closed

how to generate MPC keys? #29

0xBEEFCAF3 opened this issue Jan 28, 2024 · 5 comments

Comments

@0xBEEFCAF3
Copy link

I was setting up the full stack and ran into an issue running the MPC node against a regtest environment.
When I run cargo run -- start-committee-node I get

error: the following required arguments were not provided:
  --key-path <KEY_PATH>
  --publickey-package-path <PUBLICKEY_PACKAGE_PATH>

How do I perform DKG? Can I generate new keys or should I always be using the keys defined in the container?
https://github.com/sigma0-xyz/zkbitcoin/blob/main/DEVELOPER.md#run-an-mpc-node-with-docker

Thanks

@ppoliani
Copy link
Contributor

There is this command which you should probably run.

for example:

cargo run -- generate-committee --num 5 --threshold 3 --output-dir ./committee

This will create the keys for all 5 nodes.

This looks like a trusted key generation, not a DKG (I believe).

@mimoo
Copy link
Contributor

mimoo commented Jan 28, 2024

yes this is generation of keys via a trusted dealer, we haven't exposed the DKG stuff yet but this is planned work

@ppoliani
Copy link
Contributor

ppoliani commented Feb 1, 2024

@0xBEEFCAF3 have you had any luck creating the MPC keys? Shall we close this issue?

@0xBEEFCAF3
Copy link
Author

yes! Thank you for your help!
Closing.
One more thing. If you guys need a hand with the DKG things lmk or point me to an issue. I am currently developing it for another project with the same frost lib and would be happy to contribute here.

Thanks again 👍

@ppoliani
Copy link
Contributor

ppoliani commented Feb 1, 2024

@0xBEEFCAF3 you can probably share your thoughts here #32

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

No branches or pull requests

3 participants