@lib-q/stark 0.0.2 → 0.0.5

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/README.md CHANGED
@@ -1,12 +1,28 @@
1
1
  # @lib-q/stark
2
2
 
3
- STARK framework (lib-q-stark); prove/verify via @lib-q/zkp for high-level flows
3
+ STARK framework for Node.js (lib-q-stark); full prove/verify via @lib-q/zkp or Rust
4
4
 
5
5
  ## Install
6
6
 
7
7
  ```bash
8
- npm install @lib-q/stark@0.0.2
8
+ npm install @lib-q/stark@0.0.5
9
9
  ```
10
10
 
11
+ ## Runtime targets
12
+
13
+ When both **web** and **nodejs** wasm-pack outputs are published, `package.json` uses conditional `exports`: bundlers use `browser` / `module`; Node uses `node`.
14
+
15
+ ## Content Security Policy (browser)
16
+
17
+ WASM instantiation requires CSP rules compatible with your loader (often `script-src` including `'wasm-unsafe-eval'` or equivalent). See [wasm-security-model](https://github.com/Enkom-Tech/libQ/blob/main/docs/wasm-security-model.md).
18
+
19
+ ## Security
20
+
21
+ NIST-oriented post-quantum cryptography only; see [wasm-security-model](https://github.com/Enkom-Tech/libQ/blob/main/docs/wasm-security-model.md) for WASM linear memory, CSP, SRI, and timing notes.
22
+
23
+ ## Types
24
+
25
+ Shared TypeScript shapes: [`@lib-q/types`](https://www.npmjs.com/package/@lib-q/types).
26
+
11
27
  ## Subresource integrity (SHA-384)
12
- Paths in `integrity-manifest.json` are relative to the package root.
28
+ Paths in `integrity-manifest.json` are relative to the package root (including `web/` and `nodejs/` when both ship).
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "integrity": {
3
- "nodejs/lib_q_stark_bg.wasm": "sha384-QCe7O2ycip7/3qaS3EThUEPWuoncZJjKSQQPuUGGPn5N4tgB/801uV+FEw8SM2ew",
4
- "web/lib_q_stark_bg.wasm": "sha384-QCe7O2ycip7/3qaS3EThUEPWuoncZJjKSQQPuUGGPn5N4tgB/801uV+FEw8SM2ew"
3
+ "nodejs/lib_q_stark_bg.wasm": "sha384-XP3AJMte40OMfGwMqJ0O59tf3Rh4IUyJgrw5Nwrp7gpXrIcXHFOLzBBv+rXNSQUT",
4
+ "web/lib_q_stark_bg.wasm": "sha384-XP3AJMte40OMfGwMqJ0O59tf3Rh4IUyJgrw5Nwrp7gpXrIcXHFOLzBBv+rXNSQUT"
5
5
  }
6
6
  }