Skip to content

Commit

Permalink
Remove dev-dependency on self
Browse files Browse the repository at this point in the history
  • Loading branch information
daxpedda committed Dec 10, 2021
1 parent 126e54d commit f613b12
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
1 change: 0 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Expand Down
2 changes: 1 addition & 1 deletion src/tests/voprf_test_vectors.rs
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ fn test_base_blind<G: Group, H: BlockInput + Digest>(

assert_eq!(
&parameters.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!(
&parameters.blinded_element[i],
Expand Down
4 changes: 2 additions & 2 deletions src/voprf.rs
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ impl<G: Group, H: BlockInput + Digest> NonVerifiableClient<G, H> {
})
}

#[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.
///
Expand Down Expand Up @@ -260,7 +260,7 @@ impl<G: Group, H: BlockInput + Digest> VerifiableClient<G, H> {
})
}

#[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.
///
Expand Down

0 comments on commit f613b12

Please sign in to comment.