0.6.0 • Published 1 year 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 installinside the/vitefolder. Make sure the dependency name inpackage.jsonis the same as the name in/pkg. - Run
npm run devinside the/vitefolder. - Navigate the the localhost webpage. If you press the button it should generate a message without errors each time.