From 966e08faf6de3ce6e9ae2abd7cfedb6778f31779 Mon Sep 17 00:00:00 2001 From: Bogdan Opanchuk Date: Fri, 5 Mar 2021 21:17:18 -0800 Subject: [PATCH] Add TODOs about non-zero scalar generation --- umbral-pre/src/hashing_ds.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/umbral-pre/src/hashing_ds.rs b/umbral-pre/src/hashing_ds.rs index 17c28bb7..1b5f8edf 100644 --- a/umbral-pre/src/hashing_ds.rs +++ b/umbral-pre/src/hashing_ds.rs @@ -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, @@ -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,