diff --git a/libraries/key-identifier/src/key-identifier.js b/libraries/key-identifier/src/key-identifier.js index 9fe64917..e97858fc 100644 --- a/libraries/key-identifier/src/key-identifier.js +++ b/libraries/key-identifier/src/key-identifier.js @@ -7,7 +7,9 @@ const SUPPORTED_KEY_TYPES = new Set(['legacy', 'nacl', 'secp256k1']) const isDerivationPath = (derivationPath) => typeof derivationPath === 'object' && Symbol.toStringTag in derivationPath && - derivationPath[Symbol.toStringTag]() === 'DerivationPath' + (derivationPath[Symbol.toStringTag] === 'DerivationPath' || + (typeof derivationPath[Symbol.toStringTag] === 'function' && + derivationPath[Symbol.toStringTag]() === 'DerivationPath')) // an older version of DerivationPath incorrectly used a method instead of a getter export default class KeyIdentifier { /** @type {DerivationPath} */