Skip to content

Latest commit

 

History

History

README.md

Wasm Attribute-Based Encryption

The abe-wasm module provides WebAssembly (Wasm) bindings for the C++ attribute-based encryption (ABE) library. Run npm i to install the dependencies.

How to build?

  • Run npm run build to 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 run npm run build:wasm if you did not make changes to the C++ library.
  • Run npm run build:wasm to 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:browser to 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.

How to test?

npm run test

How to benchmark?

npm run bench

Run npm run bench -- --help to get a description of all the supported command line options.

Footnotes

  1. https://emscripten.org/

  2. https://stackoverflow.com/questions/41080815/compiling-gmp-mpfr-with-emscripten