Skip to content
Permalink
Browse files

mnemonics: fix half length seed to bytes conversion

  • Loading branch information...
moneromooo-monero committed Mar 15, 2019
1 parent 1d1a02e commit 2b10f22ae62910d3cb5453c75cb9f267644cbd7d
Showing with 1 addition and 3 deletions.
  1. +1 −3 src/mnemonics/electrum-words.cpp
@@ -340,9 +340,7 @@ namespace crypto
const size_t expected = len * 3 / 32;
if (seed.size() == expected/2)
{
dst += ' '; // if electrum 12-word seed, duplicate
dst += dst; // if electrum 12-word seed, duplicate
dst.pop_back(); // trailing space
dst.append(dst.data(), dst.size()); // if electrum 12-word seed, duplicate
}
}

0 comments on commit 2b10f22

Please sign in to comment.
You can’t perform that action at this time.