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

Add functionality to serialize/deserialize/import/export the round2 SecretPackages #48

Merged
merged 1 commit into from
Apr 10, 2024

Conversation

andiflabs
Copy link
Contributor

This is similar to fc199fd and b6537a9, but for round2 instead of round1.

@andiflabs andiflabs force-pushed the andrea/dkg-round2-secret-package-serde branch from 44806f8 to 297fa82 Compare April 10, 2024 10:29
@andiflabs andiflabs merged commit 297fa82 into main Apr 10, 2024
2 checks passed
@andiflabs andiflabs deleted the andrea/dkg-round2-secret-package-serde branch April 10, 2024 16:19
reader.read_exact(&mut scalar)?;
let scalar: Option<Scalar> = Scalar::from_bytes(&scalar).into();
let secret_share =
scalar.ok_or_else(|| io::Error::other("coefficients deserialization failed"))?;
Copy link
Contributor

Choose a reason for hiding this comment

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

nit - error message references coefficients instead of secret share

Copy link
Contributor Author

Choose a reason for hiding this comment

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

#50

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.

3 participants