Skip to content

Commit

Permalink
mnemonics: fix half length seed to bytes conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
moneromooo-monero committed Mar 15, 2019
1 parent 1d1a02e commit 2b10f22
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/mnemonics/electrum-words.cpp
Expand Up @@ -340,9 +340,7 @@ namespace crypto
const size_t expected = len * 3 / 32; const size_t expected = len * 3 / 32;
if (seed.size() == expected/2) if (seed.size() == expected/2)
{ {
dst += ' '; // if electrum 12-word seed, duplicate dst.append(dst.data(), dst.size()); // if electrum 12-word seed, duplicate
dst += dst; // if electrum 12-word seed, duplicate
dst.pop_back(); // trailing space
} }
} }


Expand Down

0 comments on commit 2b10f22

Please sign in to comment.