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

Bug: Some seed words that are prefixes of other seed words are pre-emptively accepted as complete words #234

Open
jivanpal opened this issue Nov 28, 2024 · 1 comment

Comments

@jivanpal
Copy link

jivanpal commented Nov 28, 2024

Description

When entering a BIP-39 seed phrase when restoring a wallet, some words that are prefixes of other words, when entered, cause the cursor to automatically jump to the next word field, even though the user may have wanted to enter one of the longer words. The user must thus tap backspace or tap the previous word field to continue entering the desired word.

For example:

  • "sad" is a prefix of "saddle" and "sadness".
  • "you" is a prefix of "young" and "youth".
  • "sea is a prefix of "search", "season", and "seat".

When attempting to enter "sadness", the cursor jumps to the next word field immediately "sad" is entered. Likewise for any of the other example long words when the corresponding short word is entered.

This does not happen with all such prefix words, e.g. when trying to enter "vanish", the cursor does not jump to the next word field once "van" is entered, even though "van" is in the wordlist.

Version

4.0.38 via F-Droid

Steps to reproduce

  1. Set up a new wallet > On this device > Restore wallet
  2. Try to enter any of the example long words in any of the word fields.

Expected behaviour

The cursor should not jump to the next word field unless (a) there is only one valid word that begins with the characters entered so far; or (b) the user taps one of the suggested complete words beneath the keyboard.

Actual behaviour

Observe that the cursor instead jumps to the next word field once a valid prefix word has been entered.

Device or machine

  • Sony Xperia 10 V (XQ-DC54) running Android 14
  • Samsung Galaxy A52s 5G (SM-A528B/DS) running Android 14
@angelix
Copy link
Collaborator

angelix commented Nov 28, 2024

Thanks for reporting.
Issue fixed and should be available in the next release.

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

No branches or pull requests

2 participants