@taquito/signer 25.0.0-beta.1 → 25.0.0

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.
@@ -1,8 +1,8 @@
1
1
  (function (global, factory) {
2
- typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@stablelib/nacl'), require('@taquito/utils'), require('typedarray-to-buffer'), require('@noble/curves/ed25519'), require('@noble/curves/secp256k1'), require('@noble/curves/nist.js'), require('@taquito/core'), require('@noble/curves/nist'), require('bn.js'), require('@noble/curves/bls12-381')) :
3
- typeof define === 'function' && define.amd ? define(['exports', '@stablelib/nacl', '@taquito/utils', 'typedarray-to-buffer', '@noble/curves/ed25519', '@noble/curves/secp256k1', '@noble/curves/nist.js', '@taquito/core', '@noble/curves/nist', 'bn.js', '@noble/curves/bls12-381'], factory) :
4
- (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.taquitoSigner = {}, global.nacl, global.utils, global.toBuffer, global.ed25519, global.secp256k1, global.nist, global.core, global.nist, global.BN, global.bls12381));
5
- })(this, (function (exports, nacl, utils$1, toBuffer, ed25519$1, secp256k1, nist_js, core, nist, BN, bls12381) { 'use strict';
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@stablelib/nacl'), require('@taquito/utils'), require('@noble/curves/ed25519'), require('@noble/curves/secp256k1'), require('@noble/curves/nist.js'), require('@taquito/core'), require('@noble/curves/nist'), require('bn.js'), require('@noble/curves/bls12-381')) :
3
+ typeof define === 'function' && define.amd ? define(['exports', '@stablelib/nacl', '@taquito/utils', '@noble/curves/ed25519', '@noble/curves/secp256k1', '@noble/curves/nist.js', '@taquito/core', '@noble/curves/nist', 'bn.js', '@noble/curves/bls12-381'], factory) :
4
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.taquitoSigner = {}, global.nacl, global.utils, global.ed25519, global.secp256k1, global.nist, global.core, global.nist, global.BN, global.bls12381));
5
+ })(this, (function (exports, nacl, utils$1, ed25519$1, secp256k1, nist_js, core, nist, BN, bls12381) { 'use strict';
6
6
 
7
7
  /******************************************************************************
8
8
  Copyright (c) Microsoft Corporation.
@@ -4842,8 +4842,9 @@ zoo`.split('\n'));
4842
4842
  throw new InvalidPassphraseError('No passphrase provided to decrypt encrypted key');
4843
4843
  }
4844
4844
  decrypt = (data) => {
4845
- const salt = toBuffer(data.slice(0, 8));
4846
- const encryptedSk = data.slice(8);
4845
+ // Noble rejects Buffer salts under jsdom/SSR realm boundaries. Normalize into this realm.
4846
+ const salt = Uint8Array.from(data.subarray(0, 8));
4847
+ const encryptedSk = data.subarray(8);
4847
4848
  const encryptionKey = pbkdf2(sha512, passphrase, salt, { c: 32768, dkLen: 32 });
4848
4849
  // Zero nonce is safe here: Tezos encrypted key format uses a fresh random salt per
4849
4850
  // encryption, producing a unique PBKDF2-derived key each time. The (key, nonce) pair
@@ -4945,8 +4946,8 @@ zoo`.split('\n'));
4945
4946
 
4946
4947
  // IMPORTANT: THIS FILE IS AUTO GENERATED! DO NOT MANUALLY EDIT!
4947
4948
  const VERSION = {
4948
- "commitHash": "9851c9b7e8387a82f8ff0aa6a34277a9108bb68c",
4949
- "version": "25.0.0-beta.1"
4949
+ "commitHash": "13f62cd47ea018312f100b660d0225604c757afa",
4950
+ "version": "25.0.0"
4950
4951
  };
4951
4952
 
4952
4953
  exports.ECDSA = ecdsa;