-
Notifications
You must be signed in to change notification settings - Fork 5
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
WIP: DKG demo #36
WIP: DKG demo #36
Conversation
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.
The program is erroring at the moment. I've left a comment about why I think this is happening. Other than that just some typos and questions I have about the error handling.
@@ -0,0 +1,16 @@ | |||
[package] | |||
name = "dkg" |
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.
Any chance this would get published? Any better names perhaps?
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.
We could rename them to something like frost-project-demo or something like that. But this won't get published so I don't think it's necessary.
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.
Looks good!
If you'd like feel free to merge this and I can work on tests in a separate PR |
Creates a demo for the DKG.
It's a WIP because it's missing tests. They will be a bit complex but I'll give it a shot soon.
However I did some refactorings that may be useful for other demos:
impl std::io::Write
andwriteln!
for printing. This allows using the format syntax, without callingformat!
explicitly, allows removing the customLogger
trait, and should work for printing to terminal or to a string for testing.Box<dyn std::error::Error>
for return types. This allows returning mostly any type of error, including FROST error or our own errors.eyre
to return our own errors instead trying to find matching errors in the library.