INNER CODE UNIT · Rust

mod_pow_panics_if_exp_is_negative

ZenGo-X/curv · src/arithmetic/mod.rs:309

    fn mod_pow_panics_if_exp_is_negative() {
        BigInt::mod_pow(&BigInt::from(3), &(-BigInt::one()), &BigInt::from(7));
    }

    const PRIMES: &[&str] = &[
        "2",
        "3",
        "5",
        "7",
        "11",

        "13756265695458089029",
        "13496181268022124907",
        "10953742525620032441",
        "17908251027575790097",

        // https://golang.org/issue/638
        "18699199384836356663",

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…