@lib-q/ring 0.0.2 → 0.0.6

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,18 +1,21 @@
1
- # lib-q-ring
2
-
3
- Portable negacyclic ring arithmetic for `R_q = Z_q[X]/(X^256 + 1)` with `q = 8_380_417` (FIPS 204 ML-DSA field). Shared by [**lib-q-ml-dsa**](../lib-q-ml-dsa), [**lib-q-lattice-zkp**](../lib-q-lattice-zkp), and related crates.
4
-
5
- ## Contents
6
-
7
- - Montgomery / Barrett reduction and ML-DSA NTT (forward + inverse with Montgomery scaling)
8
- - Polynomial types `Poly` / `NttPoly`, module vectors and matrices
9
- - SHAKE128 matrix expansion (ExpandA-style) and FIPS 204 `SampleInBall` (SHAKE256)
10
-
11
- ## Features
12
-
13
- - `default`: `alloc`
14
- - `alloc`: enables `lib-q-sha3/alloc` for XOF buffering helpers
15
-
16
- ## Security
17
-
18
- This crate is **research-grade** infrastructure: parameter sets and protocol security are not asserted here.
1
+ # lib-q-ring
2
+
3
+ Portable negacyclic ring arithmetic for `R_q = Z_q[X]/(X^256 + 1)` with `q = 8_380_417` (FIPS 204 ML-DSA field). Shared by [**lib-q-ml-dsa**](../lib-q-ml-dsa), [**lib-q-lattice-zkp**](../lib-q-lattice-zkp), and related crates.
4
+
5
+ ## Contents
6
+
7
+ - Montgomery / Barrett reduction and ML-DSA NTT (forward + inverse with Montgomery scaling)
8
+ - Polynomial types `Poly` / `NttPoly`, module vectors and matrices
9
+ - SHAKE128 matrix expansion (ExpandA-style) and FIPS 204 `SampleInBall` (SHAKE256)
10
+
11
+ ## Features
12
+
13
+ - `default`: `alloc`
14
+ - `alloc`: enables `lib-q-sha3/alloc` for XOF buffering helpers
15
+
16
+ ## Security
17
+
18
+ This crate is **research-grade** infrastructure: parameter sets and protocol security are not asserted here.
19
+
20
+ ## Subresource integrity (SHA-384)
21
+ 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_ring_bg.wasm": "sha384-hXicZ3IKvVYzEMMop8KPYR6V5W2/mlI/k5pWnNBgja7MIv18f3Na57YBlntuvORA",
4
- "web/lib_q_ring_bg.wasm": "sha384-hXicZ3IKvVYzEMMop8KPYR6V5W2/mlI/k5pWnNBgja7MIv18f3Na57YBlntuvORA"
3
+ "nodejs/lib_q_ring_bg.wasm": "sha384-/kRAwISkBHf5SNILD+9b/EoSlHnVytIKWaC/rFF9g22DU7tyzx3WpzVuCuiP/2Va",
4
+ "web/lib_q_ring_bg.wasm": "sha384-/kRAwISkBHf5SNILD+9b/EoSlHnVytIKWaC/rFF9g22DU7tyzx3WpzVuCuiP/2Va"
5
5
  }
6
6
  }
package/nodejs/README.md CHANGED
@@ -1,18 +1,18 @@
1
- # lib-q-ring
2
-
3
- Portable negacyclic ring arithmetic for `R_q = Z_q[X]/(X^256 + 1)` with `q = 8_380_417` (FIPS 204 ML-DSA field). Shared by [**lib-q-ml-dsa**](../lib-q-ml-dsa), [**lib-q-lattice-zkp**](../lib-q-lattice-zkp), and related crates.
4
-
5
- ## Contents
6
-
7
- - Montgomery / Barrett reduction and ML-DSA NTT (forward + inverse with Montgomery scaling)
8
- - Polynomial types `Poly` / `NttPoly`, module vectors and matrices
9
- - SHAKE128 matrix expansion (ExpandA-style) and FIPS 204 `SampleInBall` (SHAKE256)
10
-
11
- ## Features
12
-
13
- - `default`: `alloc`
14
- - `alloc`: enables `lib-q-sha3/alloc` for XOF buffering helpers
15
-
16
- ## Security
17
-
18
- This crate is **research-grade** infrastructure: parameter sets and protocol security are not asserted here.
1
+ # lib-q-ring
2
+
3
+ Portable negacyclic ring arithmetic for `R_q = Z_q[X]/(X^256 + 1)` with `q = 8_380_417` (FIPS 204 ML-DSA field). Shared by [**lib-q-ml-dsa**](../lib-q-ml-dsa), [**lib-q-lattice-zkp**](../lib-q-lattice-zkp), and related crates.
4
+
5
+ ## Contents
6
+
7
+ - Montgomery / Barrett reduction and ML-DSA NTT (forward + inverse with Montgomery scaling)
8
+ - Polynomial types `Poly` / `NttPoly`, module vectors and matrices
9
+ - SHAKE128 matrix expansion (ExpandA-style) and FIPS 204 `SampleInBall` (SHAKE256)
10
+
11
+ ## Features
12
+
13
+ - `default`: `alloc`
14
+ - `alloc`: enables `lib-q-sha3/alloc` for XOF buffering helpers
15
+
16
+ ## Security
17
+
18
+ This crate is **research-grade** infrastructure: parameter sets and protocol security are not asserted here.
Binary file
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "lib-q-ring",
3
3
  "description": "Shared ring arithmetic (R_q = Z_q[X]/(X^n+1)) for FIPS 204 lattice primitives",
4
- "version": "0.0.2",
4
+ "version": "0.0.6",
5
5
  "license": "Apache-2.0",
6
6
  "files": [
7
7
  "lib_q_ring_bg.wasm",
@@ -17,4 +17,4 @@
17
17
  "ml-dsa",
18
18
  "no-std"
19
19
  ]
20
- }
20
+ }
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@lib-q/ring",
3
3
  "type": "module",
4
- "description": "ML-DSA ring arithmetic R_q (shared with lattice-zkp)",
5
- "version": "0.0.2",
4
+ "description": "ML-DSA ring arithmetic R_q for Node.js",
5
+ "version": "0.0.6",
6
6
  "license": "Apache-2.0",
7
7
  "files": [
8
8
  "web",
package/web/README.md CHANGED
@@ -1,18 +1,18 @@
1
- # lib-q-ring
2
-
3
- Portable negacyclic ring arithmetic for `R_q = Z_q[X]/(X^256 + 1)` with `q = 8_380_417` (FIPS 204 ML-DSA field). Shared by [**lib-q-ml-dsa**](../lib-q-ml-dsa), [**lib-q-lattice-zkp**](../lib-q-lattice-zkp), and related crates.
4
-
5
- ## Contents
6
-
7
- - Montgomery / Barrett reduction and ML-DSA NTT (forward + inverse with Montgomery scaling)
8
- - Polynomial types `Poly` / `NttPoly`, module vectors and matrices
9
- - SHAKE128 matrix expansion (ExpandA-style) and FIPS 204 `SampleInBall` (SHAKE256)
10
-
11
- ## Features
12
-
13
- - `default`: `alloc`
14
- - `alloc`: enables `lib-q-sha3/alloc` for XOF buffering helpers
15
-
16
- ## Security
17
-
18
- This crate is **research-grade** infrastructure: parameter sets and protocol security are not asserted here.
1
+ # lib-q-ring
2
+
3
+ Portable negacyclic ring arithmetic for `R_q = Z_q[X]/(X^256 + 1)` with `q = 8_380_417` (FIPS 204 ML-DSA field). Shared by [**lib-q-ml-dsa**](../lib-q-ml-dsa), [**lib-q-lattice-zkp**](../lib-q-lattice-zkp), and related crates.
4
+
5
+ ## Contents
6
+
7
+ - Montgomery / Barrett reduction and ML-DSA NTT (forward + inverse with Montgomery scaling)
8
+ - Polynomial types `Poly` / `NttPoly`, module vectors and matrices
9
+ - SHAKE128 matrix expansion (ExpandA-style) and FIPS 204 `SampleInBall` (SHAKE256)
10
+
11
+ ## Features
12
+
13
+ - `default`: `alloc`
14
+ - `alloc`: enables `lib-q-sha3/alloc` for XOF buffering helpers
15
+
16
+ ## Security
17
+
18
+ This crate is **research-grade** infrastructure: parameter sets and protocol security are not asserted here.
Binary file
package/web/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "lib-q-ring",
3
3
  "type": "module",
4
4
  "description": "Shared ring arithmetic (R_q = Z_q[X]/(X^n+1)) for FIPS 204 lattice primitives",
5
- "version": "0.0.2",
5
+ "version": "0.0.6",
6
6
  "license": "Apache-2.0",
7
7
  "files": [
8
8
  "lib_q_ring_bg.wasm",
@@ -21,4 +21,4 @@
21
21
  "ml-dsa",
22
22
  "no-std"
23
23
  ]
24
- }
24
+ }