[dependencies]
elgamal_wasm = { git = "https://github.com/NexTokenTech/elgamal_wasm.git" }
use num::BigInt;
use crate::elgamal;
let pub_key:PublicKey<BigInt> = PublicKey::from_hex_str("0x747c85d7, 0x747c85d6, 0xb2040843, 32");
To evaluate of performance of this crate and the speed of public key generation. You may run below script.
cargo bench
You may use below shell commands to run profiling code and test the performance of this crate.
Before running profiling, you need to run benchmark code first (at least on MacOS).
sudo cargo bench --bench pubkey_benchmark -- --profile-time=10
cargo doc --open