mirror of
https://github.com/arnaucube/shamirsecretsharing.git
synced 2026-02-06 19:16:46 +01:00
a430ae3d0411344b6b76663c0c5abe9cbae026a6
- Added `Criterion` on dev-dependencies and a
benches config section on Cargo.toml
- Added `benchmarks` folder with `benches.rs` file.
This file contains the benchmarks implementation of
the two distinct modular_inverse implementations.
Results:
```
Modular Inverse/Kalinski Modular inverse
time: [50.105 us 50.438 us 50.819 us]
change: [-44.740% -44.195% -43.664%] (p = 0.00 < 0.05)
Performance has improved.
Modular Inverse/Standard Mod Inv
time: [82.301 us 82.430 us 82.580 us]
```
To run the benchmarks just run: `cargo bench`.
Shamir's Secret Sharing
This repo contains Rust & Go implementations of Shamir's Secret Sharing algorithm. The Go implementation also has a compiled Web Assembly (WASM) version from the Go code to be used from the browser.
go: go-shamirsecretsharing: Go lib + WASM librust: shamirsecretsharing-rs
Languages
Rust
52.8%
Go
38.8%
HTML
5.4%
JavaScript
3%