Skip to content

Commit

Permalink
typo fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ccorcoveanu committed Jul 1, 2021
1 parent 2fb57a8 commit 711ba5e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/walletcore/userWallet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export class UserWallet {
* From an encrypted keyfile, given the password, loads the secret key and the public key.
*/
static decryptSecretKey(keyFileObject: any, password: string): UserSecretKey {
const encryptedData = UserWallet.ecFromJSON(keyFileObject)
const encryptedData = UserWallet.edFromJSON(keyFileObject)

let text = Decryptor.decrypt(encryptedData, password);
while (text.length < 32) {
Expand All @@ -46,7 +46,7 @@ export class UserWallet {
return new UserSecretKey(seed);
}

static ecFromJSON(keyfileObject: any): EncryptedData {
static edFromJSON(keyfileObject: any): EncryptedData {
return new EncryptedData({
version: Version,
id: keyfileObject.id,
Expand Down

0 comments on commit 711ba5e

Please sign in to comment.