Skip to content

Commit

Permalink
chore: document todos
Browse files Browse the repository at this point in the history
  • Loading branch information
piotr-roslaniec committed Jan 30, 2024
1 parent 4bb4158 commit 72b8484
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ferveo/src/api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,7 @@ impl Dkg {
pub fn generate_transcript<R: RngCore>(
&mut self,
rng: &mut R,
// TODO: Replace with Message::Deal?
) -> Result<Transcript> {
match self.0.share(rng) {
Ok(Message::Deal(transcript)) => Ok(transcript),
Expand All @@ -235,6 +236,7 @@ impl Dkg {
pub fn aggregate_transcripts(
&mut self,
messages: &[ValidatorMessage],
// TODO: Replace with Message::Aggregate?
) -> Result<AggregatedTranscript> {
// We must use `deal` here instead of to produce AggregatedTranscript instead of simply
// creating an AggregatedTranscript from the messages, because `deal` also updates the
Expand Down

0 comments on commit 72b8484

Please sign in to comment.