Wizard: don't add erasure word for polyseed

This commit is contained in:
tobtoht 2022-05-24 09:48:23 +02:00
parent 7fb9b4c31e
commit 6ed98e5dab
No known key found for this signature in database
GPG key ID: 1CADD27F41F45C3C

View file

@ -37,13 +37,14 @@ PageWalletRestoreSeed::PageWalletRestoreSeed(WizardFields *fields, QWidget *pare
QStringList bip39English;
for (int i = 0; i != 2048; i++)
bip39English << QString::fromStdString(wordlist::english.get_word(i));
// Restore has limited error correction capability, namely it can correct a single erasure
// (illegible word with a known location). This can be tested by replacing a word with xxxx
bip39English << "xxxx";
m_polyseed.length = 16;
m_polyseed.setWords(bip39English);
// Restore has limited error correction capability, namely it can correct a single erasure
// (illegible word with a known location). This can be tested by replacing a word with xxxx
bip39English << "xxxx";
m_tevador.length = 14;
m_tevador.setWords(bip39English);