The abe-wasm module provides WebAssembly (Wasm) bindings for the C++ attribute-based encryption (ABE) library.
Run npm i to install the dependencies.
- Run
npm run buildto build the Typescript (TS) module. For convenience, a wasm file representing the latest version of the C++ library is already included. This means you don't have to runnpm run build:wasmif you did not make changes to the C++ library. - Run
npm run build:wasmto create a wasm file for the latest version of the C++ library. This build command assumes you have already installed Emscripten1 and compiled the dependencies of the C++ library for Emscripten2. - Run
npm run build:browserto build the module so it can be used in the browser. However, you can already use the browser demo without running this build command explicitly.
npm run test
npm run bench
Run npm run bench -- --help to get a description of all the supported command line options.