@quantovainc/qcore 0.3.0 → 0.3.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quantovainc/qcore",
3
- "version": "0.3.0",
3
+ "version": "0.3.2",
4
4
  "description": "Quantova's post quantum client core for JavaScript. Signs with ML-DSA-65 and builds Q1 addresses.",
5
5
  "scripts": {
6
6
  "build": "bash scripts/build.sh",
package/pkg/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "qcore-js",
3
3
  "type": "module",
4
4
  "description": "The JavaScript binding for the Quantova client core, generated over QCore with wasm-bindgen. The core does the key derivation, the post quantum signing, and the wire, the page does the fetch.",
5
- "version": "0.3.0",
5
+ "version": "0.3.2",
6
6
  "license": "Apache-2.0 OR MIT",
7
7
  "repository": {
8
8
  "type": "git",
Binary file
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "qcore-js",
3
3
  "description": "The JavaScript binding for the Quantova client core, generated over QCore with wasm-bindgen. The core does the key derivation, the post quantum signing, and the wire, the page does the fetch.",
4
- "version": "0.3.0",
4
+ "version": "0.3.2",
5
5
  "license": "Apache-2.0 OR MIT",
6
6
  "repository": {
7
7
  "type": "git",
Binary file
package/shared.js CHANGED
@@ -246,7 +246,9 @@ function generateSeed() {
246
246
  }
247
247
  const bytes = new Uint8Array(32);
248
248
  source.getRandomValues(bytes);
249
- return Array.from(bytes, (b) => b.toString(16).padStart(2, '0')).join('');
249
+ const hex = Array.from(bytes, (b) => b.toString(16).padStart(2, "0")).join("");
250
+ bytes.fill(0);
251
+ return hex;
250
252
  }
251
253
 
252
254
  function makeClient(core) {
package/shared.mjs CHANGED
@@ -246,7 +246,9 @@ function generateSeed() {
246
246
  }
247
247
  const bytes = new Uint8Array(32);
248
248
  source.getRandomValues(bytes);
249
- return Array.from(bytes, (b) => b.toString(16).padStart(2, '0')).join('');
249
+ const hex = Array.from(bytes, (b) => b.toString(16).padStart(2, "0")).join("");
250
+ bytes.fill(0);
251
+ return hex;
250
252
  }
251
253
 
252
254
  function makeClient(core) {