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

Change participant identifiers in Trusted Dealer variant #77

Open
chelseakomlo opened this issue Apr 9, 2021 · 3 comments
Open

Change participant identifiers in Trusted Dealer variant #77

chelseakomlo opened this issue Apr 9, 2021 · 3 comments
Assignees
Labels

Comments

@chelseakomlo
Copy link
Collaborator

We want a more robust but deterministic mechanism for generating participant identifiers for FROST. For the trusted dealer variant, we can generate participant identifiers as follows:

id_i = H(g^s || i || "some domain separator") for ids 1...n

Where s is the secret chosen by the dealer during Key Generation.

@upbqdn
Copy link
Member

upbqdn commented May 17, 2021

I assume that i simply goes from 1 to n, and that the dealer will use id_i to evaluate the polynomial in order to obtain the private key. Is this correct?

@upbqdn
Copy link
Member

upbqdn commented May 20, 2021

Regarding the hash function, should I go with HStar? This hash function produces a Scalar, which is 256 bits long.

This also brings up the decision of how long the identifiers should be. To me, 64 (or perhaps 32) bit identifiers seem like a reasonable choice between the length of the identifier and the chance of a collision. Also, the participants' identifiers are used in the evaluation of the polynomial in Shamir's Secret Sharing, where they are cast to u64 and then used to produce a Scalar again.

let scalar_index = Scalar::from(index as u64);

Currently, we are using u8 for the identifiers in order to limit the number of participants.

@dconnolly
Copy link
Contributor

Regarding the hash function, should I go with HStar? This hash function produces a Scalar, which is 256 bits long.

This also brings up the decision of how long the identifiers should be. To me, 64 (or perhaps 32) bit identifiers seem like a reasonable choice between the length of the identifier and the chance of a collision. Also, the participants' identifiers are used in the evaluation of the polynomial in Shamir's Secret Sharing, where they are cast to u64 and then used to produce a Scalar again.

let scalar_index = Scalar::from(index as u64);

Currently, we are using u8 for the identifiers in order to limit the number of participants.

I think we can go with u64's with the handy conversion to jubjub::Scalar, this implies that the ParticipantIds will be u64's in all the message types.

@oxarbitrage

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants