diff --git a/Cargo.lock b/Cargo.lock index 825110c1..c64f094e 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -605,7 +605,7 @@ dependencies = [ [[package]] name = "k256" -version = "0.14.0-pre.0" +version = "0.14.0-pre.1" dependencies = [ "blobby", "cfg-if", diff --git a/k256/Cargo.toml b/k256/Cargo.toml index 21da9070..41bcbdf6 100644 --- a/k256/Cargo.toml +++ b/k256/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "k256" -version = "0.14.0-pre.0" +version = "0.14.0-pre.1" description = """ secp256k1 elliptic curve library written in pure Rust with support for ECDSA signing/verification/public-key recovery, Taproot Schnorr signatures (BIP340), diff --git a/k256/src/arithmetic/field.rs b/k256/src/arithmetic/field.rs index c996cc71..9cbe924f 100644 --- a/k256/src/arithmetic/field.rs +++ b/k256/src/arithmetic/field.rs @@ -240,6 +240,7 @@ impl FieldElement { CtOption::new(res, is_root) } + /// Get the field modulus as a [`BigUint`]. #[cfg(test)] pub fn modulus_as_biguint() -> BigUint { Self::ONE.negate(1).to_biguint().unwrap() + 1.to_biguint().unwrap()