Crates.io | addchain |
lib.rs | addchain |
version | 0.2.0 |
source | src |
created_at | 2019-12-19 23:56:23.135663 |
updated_at | 2020-08-14 23:38:23.062078 |
description | Generate addition chains |
homepage | |
repository | https://github.com/str4d/addchain |
max_upload_size | |
id | 190770 |
size | 24,571 |
To find a short addition chain:
let chain = addchain::find_shortest_chain(num_bigint::BigUint::from(87u32));
To build the steps for an addition chain:
let steps = addchain::build_addition_chain(num_bigint::BigUint::from(87u32));
Licensed under either of
at your option.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.