Skip to content

Commit

Permalink
Fix out share -> agg share hack in AggregateStore
Browse files Browse the repository at this point in the history
  • Loading branch information
cjpatton committed Dec 1, 2023
1 parent 46d7919 commit b97bbb8
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ hpke-rs-crypto = "=0.1.1"
hpke-rs-rust-crypto = "=0.1.1"
matchit = "0.7.3"
paste = "1.0.14"
prio = { git = "https://github.com/divviup/libprio-rs", rev = "4ca547f35ebedf36fce45108ff8a29e14d51d048" }
prio = { git = "https://github.com/divviup/libprio-rs", rev = "f067f384df127bdbd5e35116bbf437e765238eb2" }
prometheus = "0.13.3"
rand = "0.8.5"
rand_core = "0.6.4"
Expand Down
5 changes: 2 additions & 3 deletions daphne_worker/src/durable/aggregate_store.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ use daphne::{
use prio::{
codec::{Decode, Encode},
field::FieldElement,
vdaf::{AggregateShare, OutputShare},
vdaf::AggregateShare,
};
use serde::{de::DeserializeOwned, Deserialize, Serialize};
use tracing::Instrument;
Expand Down Expand Up @@ -190,8 +190,7 @@ impl AggregateStore {
.expect("string never fails to convert to JsValue"),
)
})?;
// TODO(mendess): this an abuse of this API, this type should not be constructed this way.
Ok(AggregateShare::from(OutputShare::from(share)))
Ok(AggregateShare::from(share))
}

let data = match kind {
Expand Down

0 comments on commit b97bbb8

Please sign in to comment.