From 8e04a00ef30c1cb2155576facc87f8f03c72bf2a Mon Sep 17 00:00:00 2001 From: wojciechsromek Date: Tue, 20 Aug 2024 14:31:37 +0200 Subject: [PATCH] fix structures shares --- deploy/stage/common-values-gpu-iris-mpc.yaml | 2 +- iris-mpc/src/bin/client.rs | 10 +++++----- iris-mpc/src/bin/server.rs | 4 ++-- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/deploy/stage/common-values-gpu-iris-mpc.yaml b/deploy/stage/common-values-gpu-iris-mpc.yaml index e92060afb..a674c8f59 100644 --- a/deploy/stage/common-values-gpu-iris-mpc.yaml +++ b/deploy/stage/common-values-gpu-iris-mpc.yaml @@ -1,4 +1,4 @@ -image: "ghcr.io/worldcoin/gpu-iris-mpc:6b1953d943ed31743929ce2ccf366307147c15a3" +image: "ghcr.io/worldcoin/gpu-iris-mpc:f255cbc8e39bd8b7295c162d8d65bff43eb360ba" environment: stage replicaCount: 1 diff --git a/iris-mpc/src/bin/client.rs b/iris-mpc/src/bin/client.rs index 889d819d5..3858d9e01 100644 --- a/iris-mpc/src/bin/client.rs +++ b/iris-mpc/src/bin/client.rs @@ -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") diff --git a/iris-mpc/src/bin/server.rs b/iris-mpc/src/bin/server.rs index d0d41d486..192eaaa70 100644 --- a/iris-mpc/src/bin/server.rs +++ b/iris-mpc/src/bin/server.rs @@ -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) => { @@ -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) => {