forked from lthn/blockchain
implemented password validation for seed phrases generation
This commit is contained in:
parent
0dd79e77c4
commit
f74445d7fd
1 changed files with 1 additions and 0 deletions
|
|
@ -86,6 +86,7 @@ namespace currency
|
|||
std::vector<unsigned char> processed_seed_binary = keys_seed_binary;
|
||||
if (!password.empty())
|
||||
{
|
||||
CHECK_AND_ASSERT_THROW_MES(currency::validate_password(password), "seed phrase password contains invalid characters, seed phrase cannot be created with such a password");
|
||||
//encrypt seed phrase binary data
|
||||
crypt_with_pass(&keys_seed_binary[0], keys_seed_binary.size(), &processed_seed_binary[0], password);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue