-
Notifications
You must be signed in to change notification settings - Fork 18
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
Factor out UI modules unlock and pin #97
Conversation
italo-sampaio
commented
Oct 24, 2022
- Factor out unlock and pin modules
- Add unit tests for unlock and pin
- Factor out unlock and pin modules - Add unit tests for unlock and pin
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.
Implementation looking good so far! I've added a few comments with things I think we can improve. The one we probably need to address for sure is the pin buffer duplication. Let me know your thoughts!
- Changed pin context to hold just a pointer to the pin buffer - Changed function names to more declarative versions - Removed unused pin length macros - Added missing comments - Refactored pin and unlock unit tests for clarity
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.
LGTM. Apart from a variable that we probably don't need, very minor suggestions. Please take a look and let me know your thoughts. Thanks!
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 to me, thanks for tackling this!