-
Notifications
You must be signed in to change notification settings - Fork 1
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
python rola implementation #14
base: main
Are you sure you want to change the base?
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.
Looks good overall but I think that there are some areas where changes are needed. Some of the most notable things that I think we should change are:
- Most functions either accept or return hex string and then immediately convert them into bytes to use them. I would recommend to stop using hex strings completely for function signatures and only use
bytes
to avoid redundant conversions between hex string and bytes. - I would recommend we rely more on enums especially in areas where we know that the user can't provide us with arbitrary string or arbitrary input. An example of this is the
challenge.proof.curve
and thechallenge.type
. Also, depending on whether you think the gateway suggestion I provided is the way to go then network might also be an enum. - Lets format this code base with a consistent formatter and check for it in CI. I recommend black because it's super simple and not-configurable.
- I believe that more unit tests are needed.
thanks for the feedback @0xOmarA . yes I've already added black, it is really nice and easy indeed. Good call about the use of hex and bytes. will make the suggested change I'm indeed adding more unit tests 👍 |
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.
Left a few comments on areas that I think we should change before we merge.
Hey @balda-rdx, curious if this is ready for re review? |
@0xOmarA yes yes 👍 |
Fantastic, thanks @balda-rdx, will review in coming days. |
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.
There's one comment that I left a ping on that we must address before we merge but aside from that I think this is good to go.
No description provided.