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 BIP-85 applications to Flex and Stax #14

Open
wants to merge 10 commits into
base: develop
Choose a base branch
from
Open

Conversation

aido
Copy link

@aido aido commented Feb 19, 2025

This PR adds the following BIP-85 applications for Flex and Stax devices:

  • BIP-39
  • Base64 passwords
  • Base85 passwords

The code has also been written for other BIP-85 applications such as hex output and dice throws but a UI has not yet been added for these while I decide if they will be useful or just add bloat to the app. They may appear in a future version.
I am also debating what BIP-85 applications (if any) should be added to Nano devices.

This PR is currently a work in progress while I add some function tests.

@codecov-commenter
Copy link

codecov-commenter commented Feb 19, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 60.95%. Comparing base (8ab6d37) to head (d0e1131).

Additional details and impacted files
@@             Coverage Diff             @@
##           develop      #14      +/-   ##
===========================================
+ Coverage    60.04%   60.95%   +0.90%     
===========================================
  Files           14       18       +4     
  Lines         1632     1670      +38     
  Branches       266      270       +4     
===========================================
+ Hits           980     1018      +38     
  Misses         612      612              
  Partials        40       40              
Flag Coverage Δ
unittests 60.95% <100.00%> (+0.90%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

}
PRINTF("BIP85 index entered is '%d'\n", bip85_index_get());

if ((bip85_index_get() >= 0) && (bip85_index_get() <= UINT32_MAX)) {

Check warning

Code scanning / CodeQL

Unsigned comparison to zero Warning

Pointless comparison of unsigned value to zero.
}
PRINTF("BIP85 index entered is '%d'\n", bip85_index_get());

if ((bip85_index_get() >= 0) && (bip85_index_get() <= UINT32_MAX)) {

Check warning

Code scanning / CodeQL

Comparison result is always the same Warning

Comparison is always true because call to bip85_index_get <= 4294967295.
@aido aido marked this pull request as draft February 19, 2025 21:17
@aido aido changed the title WIP: Add BIP-85 applications to Flex and Stax Add BIP-85 applications to Flex and Stax Feb 21, 2025
@aido aido marked this pull request as ready for review February 21, 2025 02:59
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.

2 participants