@quantovainc/qcore 0.2.4 → 0.3.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/package.json +1 -1
- package/pkg/package.json +1 -1
- package/pkg/qcore_js_bg.wasm +0 -0
- package/pkg-node/package.json +1 -1
- package/pkg-node/qcore_js_bg.wasm +0 -0
- package/shared.js +3 -1
- package/shared.mjs +3 -1
package/package.json
CHANGED
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.
|
|
5
|
+
"version": "0.3.1",
|
|
6
6
|
"license": "Apache-2.0 OR MIT",
|
|
7
7
|
"repository": {
|
|
8
8
|
"type": "git",
|
package/pkg/qcore_js_bg.wasm
CHANGED
|
Binary file
|
package/pkg-node/package.json
CHANGED
|
@@ -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.
|
|
4
|
+
"version": "0.3.1",
|
|
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
|
-
|
|
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
|
-
|
|
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) {
|