Skip to content

Commit

Permalink
add fixme notes for where the Scalar was decomposed due to hash api i…
Browse files Browse the repository at this point in the history
…ncompatibility
  • Loading branch information
bunnie committed Jan 30, 2024
1 parent ef11293 commit 31efca3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions services/root-keys/src/implementation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2725,6 +2725,8 @@ impl<'a> RootKeys {
pb
});

// FIXME: this should turn back into a Scalar-from-hash routine when Ed25519 gets API-bumped to be
// compatible with the hasher
let mut output = [0u8; 64];
output.copy_from_slice(hasher.finalize().as_slice());
let r = Scalar::from_bytes_mod_order_wide(&output);
Expand Down Expand Up @@ -2767,6 +2769,8 @@ impl<'a> RootKeys {
pb.increment_work(1);
}

// FIXME: this should turn back into a Scalar-from-hash routine when Ed25519 gets API-bumped to be
// compatible with the hasher
let mut output = [0u8; 64];
output.copy_from_slice(hasher.finalize().as_slice());
let k = Scalar::from_bytes_mod_order_wide(&output);
Expand Down

0 comments on commit 31efca3

Please sign in to comment.