From 2c0649240791e19d52fcc2819295124c53c12a05 Mon Sep 17 00:00:00 2001 From: Zahary Karadjov Date: Fri, 2 Oct 2020 19:08:57 +0300 Subject: [PATCH] Address #1728 --- beacon_chain/spec/keystore.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/beacon_chain/spec/keystore.nim b/beacon_chain/spec/keystore.nim index 357cb0a90..9a1f81dcc 100644 --- a/beacon_chain/spec/keystore.nim +++ b/beacon_chain/spec/keystore.nim @@ -292,7 +292,7 @@ proc init*(T: type KeystorePass, input: string): T = func getSeed*(mnemonic: Mnemonic, password: KeystorePass): KeySeed = # https://github.com/bitcoin/bips/blob/master/bip-0039.mediawiki#from-mnemonic-to-seed - let salt = "mnemonic-" & password.str + let salt = toNFKD("mnemonic" & password.str) KeySeed sha512.pbkdf2(mnemonic.string, salt, 2048, 64) template add(m: var Mnemonic, s: cstring) =