Skip to content

Commit

Permalink
fix: podr2 aggra proof error (#427)
Browse files Browse the repository at this point in the history
  • Loading branch information
democ98 authored Jan 7, 2025
1 parent 94cad0f commit 050ceed
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion crates/ces-pdp/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -431,7 +431,7 @@ impl Keys {
let mut sigma = num_bigint::BigUint::from_str(&aggr_sigma)
.map_err(|e| PDPError { error_code: FailCode::InternalError(e.to_string()) })?;

let mut sub_sigma = num_bigint::BigUint::from_str(&aggr_sigma)
let mut sub_sigma = num_bigint::BigUint::from_str(&sub_sigma)
.map_err(|e| PDPError { error_code: FailCode::InternalError(e.to_string()) })?;
sigma = sigma * sub_sigma;
sigma = sigma.mod_floor(&n);
Expand Down
2 changes: 0 additions & 2 deletions crates/cestory/src/podr2.rs
Original file line number Diff line number Diff line change
Expand Up @@ -409,8 +409,6 @@ impl Podr2VerifierApi for Podr2VerifierServer {
info!("-----------------------------raw.result:{:?}", raw.result);
info!("-----------------------------raw.sigma:{:?}", hex::encode(raw.sigma.clone()));
info!("-----------------------------service_bloom_filter:{:?}", raw.service_bloom_filter.clone());
info!("-----------------------------encode value:{:?}", hex::encode(&raw.encode()));
info!("-----------------------------encode value hash:{:?}", hex::encode(&calculate_hash(&raw.encode())));

if !self.master_key.verify_data(
&sr25519::Signature::from_raw(
Expand Down

0 comments on commit 050ceed

Please sign in to comment.