@agentcontextdistributionprotocol/acdp-wasm 0.14.4 → 0.14.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
@@ -170,27 +170,31 @@ wasm-pack test --node
170
170
  need **no `getrandom` backend** on any wasm target. That holds at
171
171
  *runtime* — no exported verification (nor the deterministic Ed25519
172
172
  witness mint) draws randomness. It does **not** hold at *compile time*
173
- for `wasm32-unknown-unknown`: the core crates pull two randomness sources
174
- **unconditionally**, and each emits a hard `compile_error!` on that
175
- target unless a backend is wired:
176
-
177
- 1. **`getrandom 0.2`** via `rand_core 0.6` / `OsRng` (a non-optional
178
- dependency of `acdp-crypto`) → enabled with the getrandom **`js`
179
- feature**.
180
- 2. **`getrandom 0.4`** via **`uuid` v4** (a non-optional dependency of
181
- `acdp-primitives`) → enabled with the getrandom **`wasm_js` feature**
182
- *plus* `--cfg getrandom_backend="wasm_js"` (set in
183
- `.cargo/config.toml`). `uuid` additionally needs its own **`js`
184
- feature** for its v4 RNG shim.
185
-
186
- All three are wired here, **target-gated to `wasm32` only** (see
173
+ for `wasm32-unknown-unknown`: the core crates pull **`getrandom 0.4`**
174
+ **unconditionally**, from two places, and it emits a hard
175
+ `compile_error!` on that target unless a backend is wired:
176
+
177
+ - `acdp-crypto` key generation (`getrandom::SysRng`, used with
178
+ `rand_core` 0.10, which has no `OsRng`); and
179
+ - **`uuid` v4** (a non-optional dependency of `acdp-primitives`).
180
+
181
+ The backend is the getrandom **`wasm_js` feature** (on the
182
+ `getrandom_wasm` alias in `Cargo.toml`), plus
183
+ `--cfg getrandom_backend="wasm_js"` in `.cargo/config.toml`, which is
184
+ inert at 0.4.3 and kept for forward compatibility. `uuid` additionally
185
+ needs its own **`js` feature** for its v4 RNG shim. (An older direct
186
+ `getrandom 0.2` dependency with the `js` feature, for the former
187
+ `rand_core 0.6` / `OsRng` path, was removed in #363; nothing in this
188
+ binding's graph uses 0.2 any more.)
189
+
190
+ Both are wired here, **target-gated to `wasm32` only** (see
187
191
  `Cargo.toml` and `.cargo/config.toml`), so a native `cargo test` is
188
- untouched. `crypto.getRandomValues` (the `js` backend) is the CSPRNG
192
+ untouched. `crypto.getRandomValues` (the `wasm_js` backend) is the CSPRNG
189
193
  RFC-ACDP-0001 §5.10 names for the browser, so the choice is spec-blessed
190
194
  — but it is never invoked on the verify path; it is present only to link.
191
195
 
192
196
  A future `producer` feature (reserved, not yet wired) would expose fresh
193
- key generation (`SigningKey::generate`, the only `OsRng` caller) and is
197
+ key generation (`SigningKey::generate`, the only `SysRng` caller) and is
194
198
  where a runtime randomness draw would actually occur.
195
199
 
196
200
  ## Security notes
package/acdp_wasm_bg.wasm CHANGED
Binary file
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@agentcontextdistributionprotocol/acdp-wasm",
3
3
  "type": "module",
4
4
  "description": "Agent Context Distribution Protocol — WebAssembly verification core",
5
- "version": "0.14.4",
5
+ "version": "0.14.5",
6
6
  "license": "MIT OR Apache-2.0",
7
7
  "files": [
8
8
  "acdp_wasm_bg.wasm",