0.6.0 • Published 6 months ago
@tiptenbrink/opaquewasm v0.6.0
This library contains extremely minimal WebAssembly JavaScript bindings of a standard configuration of opaque-ke. It exposes 4 functions, which only accept and return base64url-encoded strings.
This library is a counterpart to opaquepy, built upon the configuration defined in opaque-borink.
Building
wasm-pack build --target web
to build.
This generates a pkg
, which you can npm publish
. Change the name in package.json
to @tiptenbrink/opaquewasm
before you upload.
To test it out in a browser:
- Run
npm install
inside the/vite
folder. Make sure the dependency name inpackage.json
is the same as the name in/pkg
. - Run
npm run dev
inside the/vite
folder. - Navigate the the localhost webpage. If you press the button it should generate a message without errors each time.