WebAssembly bindings for Sharks
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);
- Install wasm-pack:
cargo install wasm-pack
- Build:
wasm-pack build
- Test:
wasm-pack test --node
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!
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.