-
Notifications
You must be signed in to change notification settings - Fork 2.1k
[dkg-cli] Python wrapper and simplified steps #394
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
base: main
Are you sure you want to change the base?
Conversation
benr-ml
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very nice!
|
|
||
| ```bash | ||
| cargo run --bin dkg-cli process-all --messages-dir ./dkg-messages | ||
| **For new members**: Just run the command without old share. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why is this needed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i did not like the rename from init to create-message from last pr since a new member is just initializing the state locally here.
seal/crates/dkg-cli/src/main.rs
Line 325 in 31b5a53
| let state = DkgState { |
| ``` | ||
|
|
||
| TODO: Discuss what to do with old share. | ||
| Store your old master share securely. It is needed for future rotation. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hmm, why do we need it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
because a continuing member in dkg needs to create message with the old share?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
pub fn new_advanced<R: AllowedRng>(
enc_sk: ecies_v1::PrivateKey<EG>,
nodes: Nodes<EG>,
t: u16, // The number of parties that are needed to reconstruct the full key/signature (f+1).
random_oracle: RandomOracle, // Should be unique for each invocation, but the same for all parties.
secret: Option<G::ScalarType>, // Should be used only for key rotation. <= this
old_t: Option<u16>, // Used only for key rotation
rng: &mut R,
) -> FastCryptoResult<Self> {
31b5a53 to
d2fb869
Compare
- fix license
a3bc3c3 to
016ee3a
Compare
Description
create wrapper to cargo commands and sui cli to simplify the dkg steps.
Test plan
tested local rotations 0 -> 1 -> 2