@unicitylabs/sphere-sdk 0.3.4 → 0.3.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/core/index.cjs +4 -2
- package/dist/core/index.cjs.map +1 -1
- package/dist/core/index.js +4 -2
- package/dist/core/index.js.map +1 -1
- package/dist/index.cjs +4 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +4 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -9327,7 +9327,9 @@ function decryptTextFormatKey(encryptedKey, password) {
|
|
|
9327
9327
|
const key = deriveLegacyKey(password);
|
|
9328
9328
|
const decrypted = CryptoJS7.AES.decrypt(encryptedKey, key);
|
|
9329
9329
|
const result = decrypted.toString(CryptoJS7.enc.Utf8);
|
|
9330
|
-
|
|
9330
|
+
if (!result) return null;
|
|
9331
|
+
if (!/^[0-9a-fA-F]+$/.test(result)) return null;
|
|
9332
|
+
return result;
|
|
9331
9333
|
} catch {
|
|
9332
9334
|
return null;
|
|
9333
9335
|
}
|
|
@@ -11149,7 +11151,7 @@ var Sphere = class _Sphere {
|
|
|
11149
11151
|
await provider.initialize();
|
|
11150
11152
|
}
|
|
11151
11153
|
await this.reinitializeModulesForNewAddress();
|
|
11152
|
-
if (
|
|
11154
|
+
if (!newNametag) {
|
|
11153
11155
|
await this.syncIdentityWithTransport();
|
|
11154
11156
|
}
|
|
11155
11157
|
if (newNametag) {
|