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

Frost and MuSig joint key Point type parameter #131

Merged
merged 3 commits into from
Oct 31, 2022

Conversation

nickfarrow
Copy link
Collaborator

Recreating #128 minus the cherry-picked commit from #129

  • Change musig and frost keys to allow for any point type
  • keygen creates Normal points
  • signing operations are done with EvenY points

* Change musig and frost keys to allow for any point type
* keygen creates Normal points
* signing operations are done with EvenY points
Copy link
Owner

@LLFourn LLFourn left a comment

Choose a reason for hiding this comment

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

Merging the two states of the key into one looks good.

  1. The type parameter should only be set to T in one function: gen_nonce_rng. FrostKey needs to be passed in here.
  2. Delete the nonce generation stuff from binonce as the rng sutff supersedes it.
  3. Add a gen_nonce_rng to the MuSig type which takes the AggKey in the same way you did it in frost.

schnorr_fun/Cargo.toml Outdated Show resolved Hide resolved
schnorr_fun/src/frost.rs Outdated Show resolved Hide resolved
schnorr_fun/src/frost.rs Outdated Show resolved Hide resolved
schnorr_fun/src/frost.rs Outdated Show resolved Hide resolved
schnorr_fun/src/frost.rs Outdated Show resolved Hide resolved
schnorr_fun/src/frost.rs Outdated Show resolved Hide resolved
schnorr_fun/src/frost.rs Outdated Show resolved Hide resolved
schnorr_fun/src/frost.rs Outdated Show resolved Hide resolved
schnorr_fun/src/frost.rs Outdated Show resolved Hide resolved
@nickfarrow
Copy link
Collaborator Author

I believe this PR is ready for merge. I think we will leave cloning nonce_gen into Frost in a later PR.

secret: &Scalar,
session_id: &[u8],
public_key: Option<Point<impl Normalized>>,
// public_key: Option<Point<impl Normalized>>,
Copy link
Owner

Choose a reason for hiding this comment

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

I guess just remove this?

Copy link
Owner

@LLFourn LLFourn left a comment

Choose a reason for hiding this comment

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

Thanks!

@LLFourn LLFourn merged commit 7f1ae3d into LLFourn:master Oct 31, 2022
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.

None yet

2 participants