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 word count in off device mnemonic hint #339

Merged
merged 5 commits into from
Jan 10, 2025

Conversation

micbakos-rdx
Copy link
Contributor

@micbakos-rdx micbakos-rdx commented Jan 9, 2025

Added the word_count. Decided to not call it mnemonic_word_count as in DeviceFactorSourceHint since the mnemonic is implied by the struct's name.

Update:
Kotlinised some factor source samples.

Copy link

codecov bot commented Jan 9, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 92.54%. Comparing base (f45dcce) to head (c1ffa7f).
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #339      +/-   ##
==========================================
+ Coverage   92.51%   92.54%   +0.03%     
==========================================
  Files        1152     1152              
  Lines       25583    25587       +4     
  Branches       85       85              
==========================================
+ Hits        23667    23680      +13     
+ Misses       1901     1896       -5     
+ Partials       15       11       -4     
Flag Coverage Δ
kotlin 97.95% <100.00%> (+0.38%) ⬆️
rust 91.99% <100.00%> (+0.02%) ⬆️
swift 93.74% <ø> (ø)

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.

pub struct OffDeviceMnemonicHint {
/// A user-assigned name for the passphrase, intended to help users
/// differentiate between multiple passphrases.
pub label: DisplayName,

/// The number of words the `OffDeviceMnemonic`, intended to help the host provide the correct
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
/// The number of words the `OffDeviceMnemonic`, intended to help the host provide the correct
/// The number of words the `OffDeviceMnemonic` has, intended to help the host provide the correct

@@ -8,4 +8,7 @@ pub struct OffDeviceMnemonicHint {
/// A user-assigned name for the passphrase, intended to help users
/// differentiate between multiple passphrases.
pub label: DisplayName,
/// The number of words the `OffDeviceMnemonic`, intended to help the host provide the correct
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
/// The number of words the `OffDeviceMnemonic`, intended to help the host provide the correct
/// The number of words the `OffDeviceMnemonic` has, intended to help the host provide the correct

@micbakos-rdx micbakos-rdx force-pushed the micbakos/word-count-off-device-mnemonic branch from 94ac0e7 to c1ffa7f Compare January 10, 2025 08:19
@micbakos-rdx micbakos-rdx merged commit 687c377 into main Jan 10, 2025
13 checks passed
@micbakos-rdx micbakos-rdx deleted the micbakos/word-count-off-device-mnemonic branch January 10, 2025 08:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Rust 🦀 Changes in Rust Sargon
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants