Skip to content

Commit

Permalink
fix(crypto): replace variable in keylength error message
Browse files Browse the repository at this point in the history
  • Loading branch information
HashMapsData2Value committed Mar 20, 2024
1 parent dd3a95b commit 8fe30e7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/crypto/src/Bip32/Bip32PrivateKey.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import * as Bip32KeyDerivation from './Bip32KeyDerivation';
import { Bip32PrivateKeyHex } from '../hexTypes';
import { Bip32PublicKey } from './Bip32PublicKey';
import { EXTENDED_ED25519_PRIVATE_KEY_LENGTH, Ed25519PrivateKey, NORMAL_ED25519_PRIVATE_KEY_LENGTH } from '../Ed25519e';
import { EXTENDED_ED25519_PRIVATE_KEY_LENGTH, Ed25519PrivateKey } from '../Ed25519e';
import { InvalidArgumentError } from '@cardano-sdk/util';
import { crypto_scalarmult_ed25519_base_noclamp, ready } from 'libsodium-wrappers-sumo';
import { pbkdf2 } from 'pbkdf2';
Expand Down Expand Up @@ -97,7 +97,7 @@ export class Bip32PrivateKey {
if (key.length !== BIP32_ED25519_PRIVATE_KEY_LENGTH)
throw new InvalidArgumentError(
'key',
`Key should be ${NORMAL_ED25519_PRIVATE_KEY_LENGTH} bytes; however ${key.length} bytes were provided.`
`Key should be ${BIP32_ED25519_PRIVATE_KEY_LENGTH} bytes; however ${key.length} bytes were provided.`
);
return new Bip32PrivateKey(key);
}
Expand Down

0 comments on commit 8fe30e7

Please sign in to comment.