Skip to content

Commit

Permalink
Add TODOs about non-zero scalar generation
Browse files Browse the repository at this point in the history
  • Loading branch information
fjarri committed Mar 6, 2021
1 parent 6ebdcd1 commit 966e08f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions umbral-pre/src/hashing_ds.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
use crate::curve::{CurvePoint, CurveScalar};
use crate::hashing::ScalarDigest;

// TODO (#39): Ideally this should return a non-zero scalar.
pub(crate) fn hash_to_polynomial_arg(
precursor: &CurvePoint,
pubkey: &CurvePoint,
Expand All @@ -18,6 +19,8 @@ pub(crate) fn hash_to_polynomial_arg(
.finalize()
}

// TODO (#39): Ideally this should return a non-zero scalar.
// (when it does, the loop in `KeyFragFactory::new()` can be removed)
pub(crate) fn hash_to_shared_secret(
precursor: &CurvePoint,
pubkey: &CurvePoint,
Expand Down

0 comments on commit 966e08f

Please sign in to comment.