Skip to content

Commit

Permalink
fix structures shares
Browse files Browse the repository at this point in the history
  • Loading branch information
wojciechsromek committed Aug 20, 2024
1 parent f255cbc commit 8e04a00
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion deploy/stage/common-values-gpu-iris-mpc.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
image: "ghcr.io/worldcoin/gpu-iris-mpc:6b1953d943ed31743929ce2ccf366307147c15a3"
image: "ghcr.io/worldcoin/gpu-iris-mpc:f255cbc8e39bd8b7295c162d8d65bff43eb360ba"

environment: stage
replicaCount: 1
Expand Down
10 changes: 5 additions & 5 deletions iris-mpc/src/bin/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -265,11 +265,11 @@ async fn main() -> eyre::Result<()> {
general_purpose::STANDARD.encode(bytemuck::cast_slice(&shared_mask[i].coefs));

let iris_codes_json = IrisCodesJSON {
iris_version: "1.0".to_string(),
right_iris_code: iris_code_coefs_base64,
right_iris_mask: mask_code_coefs_base64,
left_iris_code: "nan".to_string(),
left_iris_mask: "nan".to_string(),
iris_version: "1.0".to_string(),
right_iris_code_shares: iris_code_coefs_base64,
right_iris_mask_shares: mask_code_coefs_base64,
left_iris_code_shares: "nan".to_string(),
left_iris_mask_shares: "nan".to_string(),
};
let serialized_iris_codes_json = to_string(&iris_codes_json)
.expect("Serialization failed")
Expand Down
4 changes: 2 additions & 2 deletions iris-mpc/src/bin/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ async fn receive_batch(
) = spawn_blocking(move || {
let mut iris_share = match GaloisRingIrisCodeShare::from_base64(
party_id + 1,
iris_message_share.right_iris_code.as_ref(),
iris_message_share.right_iris_code_shares.as_ref(),
) {
Ok(iris_share) => iris_share,
Err(e) => {
Expand All @@ -168,7 +168,7 @@ async fn receive_batch(
};
let mut mask_share = match GaloisRingIrisCodeShare::from_base64(
party_id + 1,
iris_message_share.right_iris_mask.as_ref(),
iris_message_share.right_iris_mask_shares.as_ref(),
) {
Ok(iris_share) => iris_share,
Err(e) => {
Expand Down

0 comments on commit 8e04a00

Please sign in to comment.