Skip to content

c0dearm/sharks-wasm

Repository files navigation

sharks-wasm

CI Codecov License

WebAssembly bindings for Sharks

Usage

const sharks_wasm = require('@c0dearm/sharks-wasm');

const sharks = sharks_wasm.SharksJS.new(3);
const shares = sharks.deal([1, 2, 3, 4], 255);
const secret = sharks.recover(shares);
console.log(secret);

Building and testing

  1. Install wasm-pack: cargo install wasm-pack
  2. Build: wasm-pack build
  3. Test: wasm-pack test --node

Contributing

If you find a vulnerability, bug or would like a new feature, open a new issue.

To introduce your changes into the codebase, submit a Pull Request.

Many thanks!

License

sharks-wasm is distributed under the terms of both the MIT license and the Apache License (Version 2.0).

See LICENSE-APACHE and LICENSE-MIT, and COPYRIGHT for details.