@taquito/sapling 25.0.0-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.
@@ -29,8 +29,9 @@ function decryptKey(spendingKey, password) {
29
29
  if (!password) {
30
30
  throw new errors_1.InvalidSpendingKey('no password provided to decrypt');
31
31
  }
32
- const salt = (0, typedarray_to_buffer_1.default)(keyArr.slice(0, 8));
33
- const encryptedSk = (0, typedarray_to_buffer_1.default)(keyArr.slice(8));
32
+ // Noble rejects Buffer salts under jsdom/SSR realm boundaries. Normalize into this realm.
33
+ const salt = Uint8Array.from(keyArr.subarray(0, 8));
34
+ const encryptedSk = keyArr.subarray(8);
34
35
  const encryptionKey = (0, pbkdf2_js_1.pbkdf2)(sha2_js_1.sha512, password, salt, { c: 32768, dkLen: 32 });
35
36
  // Zero nonce is safe: fresh random salt per encryption produces unique PBKDF2-derived key.
36
37
  // See: https://gitlab.com/tezos/tezos/-/blob/master/src/lib_signer_backends/encrypted.ml
@@ -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": "9851c9b7e8387a82f8ff0aa6a34277a9108bb68c",
7
- "version": "25.0.0-beta.1"
6
+ "commitHash": "13f62cd47ea018312f100b660d0225604c757afa",
7
+ "version": "25.0.0-rc.1"
8
8
  };
@@ -4386,8 +4386,9 @@ function decryptKey(spendingKey, password) {
4386
4386
  if (!password) {
4387
4387
  throw new InvalidSpendingKey('no password provided to decrypt');
4388
4388
  }
4389
- const salt = toBuffer(keyArr.slice(0, 8));
4390
- const encryptedSk = toBuffer(keyArr.slice(8));
4389
+ // Noble rejects Buffer salts under jsdom/SSR realm boundaries. Normalize into this realm.
4390
+ const salt = Uint8Array.from(keyArr.subarray(0, 8));
4391
+ const encryptedSk = keyArr.subarray(8);
4391
4392
  const encryptionKey = pbkdf2(sha512, password, salt, { c: 32768, dkLen: 32 });
4392
4393
  // Zero nonce is safe: fresh random salt per encryption produces unique PBKDF2-derived key.
4393
4394
  // See: https://gitlab.com/tezos/tezos/-/blob/master/src/lib_signer_backends/encrypted.ml