mirror of
https://github.com/Qortal/Qortal-Hub.git
synced 2025-11-13 11:27:19 +00:00
added seedphrase feature
This commit is contained in:
@@ -21,4 +21,14 @@ export const decryptStoredWallet = async (password, wallet) => {
|
||||
}
|
||||
const decryptedBytes = AES_CBC.decrypt(encryptedSeedBytes, encryptionKey, false, iv)
|
||||
return decryptedBytes
|
||||
}
|
||||
|
||||
export const decryptStoredWalletFromSeedPhrase = async (password) => {
|
||||
console.log('p')
|
||||
const threads = doInitWorkers(crypto.kdfThreads)
|
||||
const salt = new Uint8Array(void 0)
|
||||
|
||||
|
||||
const seed = await kdf(password, salt, threads)
|
||||
return seed
|
||||
}
|
||||
Reference in New Issue
Block a user