@taquito/signer 24.0.1 → 24.0.2

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.
@@ -117,7 +117,12 @@ class InMemorySigner {
117
117
  const salt = (0, typedarray_to_buffer_1.default)(data.slice(0, 8));
118
118
  const encryptedSk = data.slice(8);
119
119
  const encryptionKey = pbkdf2_1.default.pbkdf2Sync(passphrase, salt, 32768, 32, 'sha512');
120
- const res = (0, nacl_1.openSecretBox)(new Uint8Array(encryptionKey), new Uint8Array(24), new Uint8Array(encryptedSk));
120
+ // Zero nonce is safe here: Tezos encrypted key format uses a fresh random salt per
121
+ // encryption, producing a unique PBKDF2-derived key each time. The (key, nonce) pair
122
+ // never repeats, satisfying NaCl secretbox requirements. This matches octez-client.
123
+ // See: https://gitlab.com/tezos/tezos/-/blob/master/src/lib_signer_backends/encrypted.ml
124
+ const res = (0, nacl_1.openSecretBox)(new Uint8Array(encryptionKey), new Uint8Array(24), // zero nonce - uniqueness provided by per-encryption derived key
125
+ new Uint8Array(encryptedSk));
121
126
  if (!res) {
122
127
  throw new Error("can't decrypt secret key");
123
128
  }
@@ -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": "ff502b6457efd5502635c8d6fe796fe156ef82b7",
7
- "version": "24.0.1"
6
+ "commitHash": "f798e97ba998acc2cc5310278d812448591bd312",
7
+ "version": "24.0.2"
8
8
  };
@@ -883,7 +883,12 @@ class InMemorySigner {
883
883
  const salt = toBuffer(data.slice(0, 8));
884
884
  const encryptedSk = data.slice(8);
885
885
  const encryptionKey = pbkdf2.pbkdf2Sync(passphrase, salt, 32768, 32, 'sha512');
886
- const res = openSecretBox(new Uint8Array(encryptionKey), new Uint8Array(24), new Uint8Array(encryptedSk));
886
+ // Zero nonce is safe here: Tezos encrypted key format uses a fresh random salt per
887
+ // encryption, producing a unique PBKDF2-derived key each time. The (key, nonce) pair
888
+ // never repeats, satisfying NaCl secretbox requirements. This matches octez-client.
889
+ // See: https://gitlab.com/tezos/tezos/-/blob/master/src/lib_signer_backends/encrypted.ml
890
+ const res = openSecretBox(new Uint8Array(encryptionKey), new Uint8Array(24), // zero nonce - uniqueness provided by per-encryption derived key
891
+ new Uint8Array(encryptedSk));
887
892
  if (!res) {
888
893
  throw new Error("can't decrypt secret key");
889
894
  }
@@ -982,8 +987,8 @@ function publicKeyFromString(src) {
982
987
 
983
988
  // IMPORTANT: THIS FILE IS AUTO GENERATED! DO NOT MANUALLY EDIT!
984
989
  const VERSION = {
985
- "commitHash": "ff502b6457efd5502635c8d6fe796fe156ef82b7",
986
- "version": "24.0.1"
990
+ "commitHash": "f798e97ba998acc2cc5310278d812448591bd312",
991
+ "version": "24.0.2"
987
992
  };
988
993
 
989
994
  export { ecdsa as ECDSA, ed25519 as Ed25519, Hard, InMemorySigner, InvalidPassphraseError, Path, VERSION, generateSecretKey, publicKeyFromString };
@@ -1 +1 @@
1
- {"version":3,"file":"taquito-signer.es6.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -892,7 +892,12 @@
892
892
  const salt = toBuffer(data.slice(0, 8));
893
893
  const encryptedSk = data.slice(8);
894
894
  const encryptionKey = pbkdf2.pbkdf2Sync(passphrase, salt, 32768, 32, 'sha512');
895
- const res = nacl.openSecretBox(new Uint8Array(encryptionKey), new Uint8Array(24), new Uint8Array(encryptedSk));
895
+ // Zero nonce is safe here: Tezos encrypted key format uses a fresh random salt per
896
+ // encryption, producing a unique PBKDF2-derived key each time. The (key, nonce) pair
897
+ // never repeats, satisfying NaCl secretbox requirements. This matches octez-client.
898
+ // See: https://gitlab.com/tezos/tezos/-/blob/master/src/lib_signer_backends/encrypted.ml
899
+ const res = nacl.openSecretBox(new Uint8Array(encryptionKey), new Uint8Array(24), // zero nonce - uniqueness provided by per-encryption derived key
900
+ new Uint8Array(encryptedSk));
896
901
  if (!res) {
897
902
  throw new Error("can't decrypt secret key");
898
903
  }
@@ -991,8 +996,8 @@
991
996
 
992
997
  // IMPORTANT: THIS FILE IS AUTO GENERATED! DO NOT MANUALLY EDIT!
993
998
  const VERSION = {
994
- "commitHash": "ff502b6457efd5502635c8d6fe796fe156ef82b7",
995
- "version": "24.0.1"
999
+ "commitHash": "f798e97ba998acc2cc5310278d812448591bd312",
1000
+ "version": "24.0.2"
996
1001
  };
997
1002
 
998
1003
  exports.ECDSA = ecdsa;
@@ -1 +1 @@
1
- {"version":3,"file":"taquito-signer.umd.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@taquito/signer",
3
- "version": "24.0.1",
3
+ "version": "24.0.2",
4
4
  "description": "Provide signing functionality to be with taquito",
5
5
  "keywords": [
6
6
  "tezos",
@@ -73,8 +73,8 @@
73
73
  "@stablelib/nacl": "^1.0.4",
74
74
  "@stablelib/pbkdf2": "^1.0.1",
75
75
  "@stablelib/sha512": "^1.0.1",
76
- "@taquito/core": "^24.0.1",
77
- "@taquito/utils": "^24.0.1",
76
+ "@taquito/core": "^24.0.2",
77
+ "@taquito/utils": "^24.0.2",
78
78
  "@types/bn.js": "^5.1.5",
79
79
  "bip39": "3.1.0",
80
80
  "bn.js": "^5.2.2",
@@ -111,5 +111,5 @@
111
111
  "typedoc": "^0.26.5",
112
112
  "typescript": "~5.5.4"
113
113
  },
114
- "gitHead": "743aefee3aa20a047a2738d7e251141620142b60"
114
+ "gitHead": "1ed75f883b26cbe2a62287813eedb096d81f0f46"
115
115
  }