@taquito/sapling 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.
- package/dist/lib/sapling-keys/helpers.js +3 -2
- package/dist/lib/version.js +2 -2
- package/dist/taquito-sapling.es6.js +372 -87
- package/dist/taquito-sapling.es6.js.map +1 -1
- package/dist/taquito-sapling.umd.js +372 -87
- package/dist/taquito-sapling.umd.js.map +1 -1
- package/dist/types/node_modules/@scure/base/index.d.ts +286 -24
- package/package.json +11 -11
|
@@ -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
|
-
|
|
33
|
-
const
|
|
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
|
package/dist/lib/version.js
CHANGED
|
@@ -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": "
|
|
7
|
-
"version": "
|
|
6
|
+
"commitHash": "13f62cd47ea018312f100b660d0225604c757afa",
|
|
7
|
+
"version": "25.0.0-rc.1"
|
|
8
8
|
};
|