| 1 | # addchain: Rust crate for generating addition chains |
| 2 | |
| 3 | ## Usage |
| 4 | |
| 5 | To find a short addition chain: |
| 6 | |
| 7 | ```rust |
| 8 | let chain = addchain::find_shortest_chain(num_bigint::BigUint::from(87u32)); |
| 9 | ``` |
| 10 | |
| 11 | To build the steps for an addition chain: |
| 12 | |
| 13 | ```rust |
| 14 | let steps = addchain::build_addition_chain(num_bigint::BigUint::from(87u32)); |
| 15 | ``` |
| 16 | |
| 17 | ## License |
| 18 | |
| 19 | Licensed under either of |
| 20 | |
| 21 | * Apache License, Version 2.0, ([LICENSE-APACHE](LICENSE-APACHE) or |
| 22 | http://www.apache.org/licenses/LICENSE-2.0) |
| 23 | * MIT license ([LICENSE-MIT](LICENSE-MIT) or http://opensource.org/licenses/MIT) |
| 24 | |
| 25 | at your option. |
| 26 | |
| 27 | ### Contribution |
| 28 | |
| 29 | Unless you explicitly state otherwise, any contribution intentionally |
| 30 | submitted for inclusion in the work by you, as defined in the Apache-2.0 |
| 31 | license, shall be dual licensed as above, without any additional terms or |
| 32 | conditions. |
| 33 |