@taquito/signer 24.3.1-beta.1 → 25.0.0-rc.1

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.
@@ -16,7 +16,6 @@ exports.InMemorySigner = void 0;
16
16
  exports.publicKeyFromString = publicKeyFromString;
17
17
  const nacl_1 = require("@stablelib/nacl");
18
18
  const utils_1 = require("@taquito/utils");
19
- const typedarray_to_buffer_1 = require("typedarray-to-buffer");
20
19
  const ed_key_1 = require("./ed-key");
21
20
  const ec_key_1 = require("./ec-key");
22
21
  const bip39 = require("@scure/bip39");
@@ -101,8 +100,9 @@ class InMemorySigner {
101
100
  throw new errors_1.InvalidPassphraseError('No passphrase provided to decrypt encrypted key');
102
101
  }
103
102
  decrypt = (data) => {
104
- const salt = (0, typedarray_to_buffer_1.default)(data.slice(0, 8));
105
- const encryptedSk = data.slice(8);
103
+ // Noble rejects Buffer salts under jsdom/SSR realm boundaries. Normalize into this realm.
104
+ const salt = Uint8Array.from(data.subarray(0, 8));
105
+ const encryptedSk = data.subarray(8);
106
106
  const encryptionKey = (0, pbkdf2_js_1.pbkdf2)(sha2_js_1.sha512, passphrase, salt, { c: 32768, dkLen: 32 });
107
107
  // Zero nonce is safe here: Tezos encrypted key format uses a fresh random salt per
108
108
  // encryption, producing a unique PBKDF2-derived key each time. The (key, nonce) pair
@@ -3,6 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.VERSION = void 0;
4
4
  // IMPORTANT: THIS FILE IS AUTO GENERATED! DO NOT MANUALLY EDIT!
5
5
  exports.VERSION = {
6
- "commitHash": "9647402fcc62c98bf3907a30214fea8871b30bea",
7
- "version": "24.3.1-beta.1"
6
+ "commitHash": "13f62cd47ea018312f100b660d0225604c757afa",
7
+ "version": "25.0.0-rc.1"
8
8
  };