@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 +20 -16
- package/acdp_wasm_bg.wasm +0 -0
- package/package.json +1 -1
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
|
|
174
|
-
**unconditionally**, and
|
|
175
|
-
target unless a backend is wired:
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
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 `
|
|
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 `
|
|
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.
|
|
5
|
+
"version": "0.14.5",
|
|
6
6
|
"license": "MIT OR Apache-2.0",
|
|
7
7
|
"files": [
|
|
8
8
|
"acdp_wasm_bg.wasm",
|