Skip to content

Commit

Permalink
Update algorithm IDs
Browse files Browse the repository at this point in the history
  • Loading branch information
divergentdave committed Dec 4, 2024
1 parent 1e517a6 commit c271f40
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion src/vdaf/poplar1.rs
Original file line number Diff line number Diff line change
Expand Up @@ -855,7 +855,7 @@ impl<P: Xof<SEED_SIZE>, const SEED_SIZE: usize> Vdaf for Poplar1<P, SEED_SIZE> {
type AggregateShare = Poplar1FieldVec;

fn algorithm_id(&self) -> u32 {
0x00001000
0x00000006
}

fn num_aggregators(&self) -> usize {
Expand Down
16 changes: 8 additions & 8 deletions src/vdaf/prio3.rs
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ pub type Prio3Count = Prio3<Count<Field64>, XofTurboShake128, 16>;
impl Prio3Count {
/// Construct an instance of Prio3Count with the given number of aggregators.
pub fn new_count(num_aggregators: u8) -> Result<Self, VdafError> {
Prio3::new(num_aggregators, 1, 0x00000000, Count::new())
Prio3::new(num_aggregators, 1, 0x00000001, Count::new())
}
}

Expand All @@ -100,7 +100,7 @@ impl Prio3SumVec {
Prio3::new(
num_aggregators,
1,
0x00000002,
0x00000003,
SumVec::new(bits, len, chunk_length)?,
)
}
Expand Down Expand Up @@ -130,7 +130,7 @@ impl Prio3SumVecMultithreaded {
Prio3::new(
num_aggregators,
1,
0x00000002,
0x00000003,
SumVec::new(bits, len, chunk_length)?,
)
}
Expand All @@ -150,7 +150,7 @@ impl Prio3Sum {
)));
}

Prio3::new(num_aggregators, 1, 0x00000001, Sum::new(bits)?)
Prio3::new(num_aggregators, 1, 0x00000002, Sum::new(bits)?)
}
}

Expand Down Expand Up @@ -248,7 +248,7 @@ impl Prio3Histogram {
Prio3::new(
num_aggregators,
1,
0x00000003,
0x00000004,
Histogram::new(length, chunk_length)?,
)
}
Expand Down Expand Up @@ -276,7 +276,7 @@ impl Prio3HistogramMultithreaded {
Prio3::new(
num_aggregators,
1,
0x00000003,
0x00000004,
Histogram::new(length, chunk_length)?,
)
}
Expand All @@ -300,7 +300,7 @@ impl Prio3MultihotCountVec {
Prio3::new(
num_aggregators,
1,
0xFFFF0000,
0x00000005,
MultihotCountVec::new(num_buckets, max_weight, chunk_length)?,
)
}
Expand Down Expand Up @@ -329,7 +329,7 @@ impl Prio3MultihotCountVecMultithreaded {
Prio3::new(
num_aggregators,
1,
0xFFFF0000,
0x00000005,
MultihotCountVec::new(num_buckets, max_weight, chunk_length)?,
)
}
Expand Down

0 comments on commit c271f40

Please sign in to comment.