Documentation
¶
Rendered for js/wasm
Overview ¶
The WASM bridge exposes exactly one global function to the page:
generateClientConfig(requestJSON string) string
The argument is a clientconfig.Request as JSON (see docs/json-schema.md); the return value is always a JSON string, one of:
{"ok": true, "result": { ...clientconfig.Result... }}
{"ok": false, "error": "human-readable message"}
Randomness comes from crypto/rand, which under GOOS=js is backed by the browser's crypto.getRandomValues; the test page asserts that API exists before instantiating the module.
Click to show internal directories.
Click to hide internal directories.