#cryptography #gmp #num-bigint #big-int

rust-bigint

Common traits and methods for multiple BigInt implementations

2 stable releases

1.2.0 Sep 16, 2021
1.1.0 Sep 21, 2020

#293 in Math

Download history 17/week @ 2022-06-13 36/week @ 2022-06-20 22/week @ 2022-06-27 25/week @ 2022-07-04 24/week @ 2022-07-11 25/week @ 2022-07-18 24/week @ 2022-07-25 24/week @ 2022-08-01 64/week @ 2022-08-08 34/week @ 2022-08-15 35/week @ 2022-08-22 21/week @ 2022-08-29 39/week @ 2022-09-05 33/week @ 2022-09-12 42/week @ 2022-09-19 46/week @ 2022-09-26

160 downloads per month
Used in 6 crates (3 directly)

MIT license

31KB
779 lines

rust-bigint

Provides traits for common functionality across several Rust BigInt implementations

Example interaction:

// import BigInt from this library. use a feature flag to select the BigInt you need
// also, pull one or more traits from this library into scope
use rust_bigint::BigInt;
use rust_bigint::traits::Converter;
 
let number = BigInt::from(42);
// now use one of the methods exposed by the converter trait
let hex_str = number.to_hex();

See the traits for more examples.


lib.rs:

Provides traits for common functionality across several Rust BigInt implementations

Example interaction:

// import BigInt from this library. use a feature flag to select the BigInt you need
// also, pull one or more traits from this library into scope
use rust_bigint::BigInt;
use rust_bigint::traits::Converter;

let number = BigInt::from(42);
// now use one of the methods exposed by the converter trait
let hex_str = number.to_hex();

See the traits for more examples.

Dependencies

~0.4–1.1MB
~25K SLoC