addchain

Crates.ioaddchain
lib.rsaddchain
version0.2.0
sourcesrc
created_at2019-12-19 23:56:23.135663
updated_at2020-08-14 23:38:23.062078
descriptionGenerate addition chains
homepage
repositoryhttps://github.com/str4d/addchain
max_upload_size
id190770
size24,571
(str4d)

documentation

README

addchain: Rust crate for generating addition chains

Usage

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));

License

Licensed under either of

at your option.

Contribution

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.

Commit count: 10

cargo fmt