quantum-resistant-rustykey 0.11.0 → 0.12.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.
Files changed (2) hide show
  1. package/README.md +19 -0
  2. package/package.json +18 -18
package/README.md CHANGED
@@ -153,6 +153,25 @@ yarn add quantum-resistant-rustykey
153
153
 
154
154
  ## Usage
155
155
 
156
+ ### SQISign-webGPU (browser accelerated)
157
+
158
+ Browser-only accelerated SQISign variants: **SQISign-L1-webGPU**, **SQISign-L3-webGPU**, **SQISign-L5-webGPU**.
159
+ Requires COOP/COEP headers (`crossOriginIsolated`). See [docs/SQISIGN-WEBGPU.md](./docs/SQISIGN-WEBGPU.md).
160
+
161
+ ```typescript
162
+ import {
163
+ isSqisignWebGpuAvailable,
164
+ loadSqisignLvl5WebGpu,
165
+ benchSqisignWebGpu,
166
+ } from "quantum-resistant-rustykey";
167
+
168
+ if (isSqisignWebGpuAvailable()) {
169
+ const sq = await loadSqisignLvl5WebGpu();
170
+ const bench = await benchSqisignWebGpu("lvl5");
171
+ console.log(bench.steps);
172
+ }
173
+ ```
174
+
156
175
  ### Node.js example
157
176
 
158
177
  ```typescript
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "quantum-resistant-rustykey",
3
- "version": "0.11.0",
3
+ "version": "0.12.0",
4
4
  "description": "WebAssembly post-quantum-resistant tools for web",
5
5
  "author": "Antony R Mott <a@auditcanary.com> (https://rustykey.app)",
6
6
  "license": "ISC",
@@ -35,26 +35,11 @@
35
35
  "files": [
36
36
  "dist"
37
37
  ],
38
- "scripts": {
39
- "clean": "rm -rf dist",
40
- "lint": "biome check . && tsc --project tsconfig.lint.json",
41
- "lint:fix": "biome check --write .",
42
- "build:wasm": "node scripts/build-wasm.mjs",
43
- "bundle:mlkem": "node scripts/bundle-mlkem.mjs",
44
- "bundle:signatures": "node scripts/bundle-signatures.mjs",
45
- "build:vendor": "pnpm build:wasm && pnpm bundle:mlkem && pnpm bundle:signatures",
46
- "build": "pnpm build:vendor && tsdown",
47
- "test": "pnpm build:vendor && vitest run",
48
- "verify:dist": "node scripts/verify-dist.mjs",
49
- "prepack": "pnpm verify:dist",
50
- "prepublishOnly": "pnpm verify:dist",
51
- "release": "pnpm verify:dist && changeset publish",
52
- "example:browser": "pnpm --filter browser-demo dev"
53
- },
54
38
  "devDependencies": {
55
39
  "@biomejs/biome": "2.4.11",
56
40
  "@changesets/cli": "2.30.0",
57
41
  "@types/node": "25.6.0",
42
+ "@webgpu/types": "0.1.71",
58
43
  "esbuild": "0.28.0",
59
44
  "tsdown": "0.21.8",
60
45
  "typescript": "6.0.2",
@@ -62,5 +47,20 @@
62
47
  },
63
48
  "dependencies": {
64
49
  "@noble/post-quantum": "0.6.1"
50
+ },
51
+ "scripts": {
52
+ "clean": "rm -rf dist",
53
+ "lint": "biome check --config-path ./biome.json ./src ./scripts ./tsconfig.json ./tsconfig.lint.json ./tsdown.config.ts && tsc --project ./tsconfig.lint.json",
54
+ "lint:fix": "biome check --config-path ./biome.json --write ./src ./scripts ./tsconfig.json ./tsconfig.lint.json ./tsdown.config.ts",
55
+ "build:wasm": "node scripts/build-wasm.mjs",
56
+ "bundle:mlkem": "node scripts/bundle-mlkem.mjs",
57
+ "bundle:signatures": "node scripts/bundle-signatures.mjs",
58
+ "bundle:accel-worker": "node scripts/bundle-accel-worker.mjs",
59
+ "build:vendor": "pnpm build:wasm && pnpm bundle:mlkem && pnpm bundle:signatures",
60
+ "build": "pnpm build:vendor && tsdown && pnpm bundle:accel-worker",
61
+ "test": "pnpm build:vendor && vitest run",
62
+ "verify:dist": "node scripts/verify-dist.mjs",
63
+ "release": "pnpm verify:dist && changeset publish",
64
+ "example:browser": "pnpm --filter browser-demo dev"
65
65
  }
66
- }
66
+ }