Skip to content

Latest commit

 

History

History
33 lines (25 loc) · 695 Bytes

other.md

File metadata and controls

33 lines (25 loc) · 695 Bytes

TS Bindings for no_std BLS Signatures

Creates bindings for https://github.com/gluwa/bls-signatures. ./pkg needs to be published to npm

Generating bindings

Install wasm-pack

cargo install wasm-pack

Run wasm-pack with nodejs target

wasm-pack build --target nodejs

This will generate a pkg directory with the bindings. The usage example within this project is shown below.

Usage

Inside ts-example there is an example of how to use the bindings. You should additionally make a symbolic link inside the dir.

ln -s ../pkg ./pkg

After that you can build the project with

npm run build

and then run it

npm start