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

Include DKG example #112

Open
ineiti opened this issue Mar 25, 2021 · 3 comments
Open

Include DKG example #112

ineiti opened this issue Mar 25, 2021 · 3 comments

Comments

@ineiti
Copy link

ineiti commented Mar 25, 2021

Would it be very difficult to add an example that does the key-setup using a DKG? Like replacing the following code in the examples:

        let mut rng = rand::thread_rng();
        let sk_set = SecretKeySet::random(threshold, &mut rng);
        let pk_set = sk_set.public_keys();

        let actors = (0..n_actors)
            .map(|id| {
                let sk_share = sk_set.secret_key_share(id);
                let pk_share = pk_set.public_key_share(id);
                Actor::new(id, sk_share, pk_share)
            })
            .collect();

With something where the dealer does not know the secret key!

@ineiti
Copy link
Author

ineiti commented Mar 26, 2021

Note to self: probably this can help

https://github.com/poanetwork/threshold_crypto/blob/master/src/poly.rs#L819

@afck
Copy link
Collaborator

afck commented Mar 27, 2021

(Not sure if anyone's working on this repository currently.)
Maybe the DKG implementation in HBBFT (which uses threshold_crypto) can serve as an example.

@dan-da
Copy link

dan-da commented Jul 7, 2021

there is also bls_dkg crate.

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