diff --git a/Cargo.toml b/Cargo.toml index db83e14..870abd5 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -49,7 +49,6 @@ proptest = "1" rand = "0.8" regex = "1" sha2 = "0.9" -voprf = { path = "", default-features = false, features = ["danger"] } [package.metadata.docs.rs] features = ["danger", "p256", "std"] diff --git a/src/tests/voprf_test_vectors.rs b/src/tests/voprf_test_vectors.rs index d2af8c2..5a9a300 100644 --- a/src/tests/voprf_test_vectors.rs +++ b/src/tests/voprf_test_vectors.rs @@ -185,7 +185,7 @@ fn test_base_blind( assert_eq!( ¶meters.blind[i], - &G::scalar_as_bytes(client_result.state.get_blind()).to_vec() + &G::scalar_as_bytes(client_result.state.blind).to_vec() ); assert_eq!( ¶meters.blinded_element[i], diff --git a/src/voprf.rs b/src/voprf.rs index aa5eff8..a547a94 100644 --- a/src/voprf.rs +++ b/src/voprf.rs @@ -178,7 +178,7 @@ impl NonVerifiableClient { }) } - #[cfg(feature = "danger")] + #[cfg(any(feature = "danger", test))] /// Computes the first step for the multiplicative blinding version of DH-OPRF, /// taking a blinding factor scalar as input instead of sampling from an RNG. /// @@ -260,7 +260,7 @@ impl VerifiableClient { }) } - #[cfg(feature = "danger")] + #[cfg(any(feature = "danger", test))] /// Computes the first step for the multiplicative blinding version of DH-OPRF, /// taking a blinding factor scalar as input instead of sampling from an RNG. ///