Skip to content

Commit 32a8e5e

Browse files
committed
chore: fix import
1 parent 9dfa719 commit 32a8e5e

File tree

3 files changed

+5
-7
lines changed

3 files changed

+5
-7
lines changed

core/service/src/client/js_api.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ use crate::cryptography::internal_crypto_types::{
7575
use bc2wrap::{deserialize, serialize};
7676
use kms_grpc::kms::v1::FheParameter;
7777
use kms_grpc::kms::v1::UserDecryptionResponse;
78-
use kms_grpc::kms::v1::{Eip712DomainMsg, TypedPlaintext};
78+
use kms_grpc::kms::v1::{Eip712DomainMsg, TypedPlaintext, UserDecryptionResponsePayload};
7979
use kms_grpc::rpc_types::protobuf_to_alloy_domain;
8080
use threshold_fhe::execution::tfhe_internals::parameters::BC_PARAMS_SNS;
8181

@@ -422,7 +422,7 @@ fn js_to_resp(json: JsValue) -> anyhow::Result<Vec<UserDecryptionResponse>> {
422422
payload: match hex_resp.payload {
423423
Some(inner) => {
424424
let buf = hex::decode(&inner)?;
425-
Some(deserialize::<()>(&buf)?)
425+
Some(deserialize::<UserDecryptionResponsePayload>(&buf)?)
426426
}
427427
None => None,
428428
},

core/service/src/client/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
use crate::cryptography::internal_crypto_types::Signature;
21
use crate::cryptography::internal_crypto_types::{PrivateSigKey, PublicSigKey};
32
use aes_prng::AesRng;
43
use alloy_sol_types::Eip712Domain;
@@ -13,6 +12,7 @@ use wasm_bindgen::prelude::*;
1312

1413
cfg_if::cfg_if! {
1514
if #[cfg(feature = "non-wasm")] {
15+
use crate::cryptography::internal_crypto_types::Signature;
1616
use crate::anyhow_error_and_log;
1717
use itertools::Itertools;
1818
use crate::consts::{DEFAULT_PROTOCOL, DEFAULT_URL, MAX_TRIES};

core/service/src/client/user_decryption.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,7 @@ use crate::engine::validation::{
1414
use crate::{anyhow_error_and_log, some_or_err};
1515
use alloy_sol_types::Eip712Domain;
1616
use itertools::Itertools;
17-
use kms_grpc::kms::v1::{
18-
TypedPlaintext, UserDecryptionRequest, UserDecryptionResponse, UserDecryptionResponsePayload,
19-
};
17+
use kms_grpc::kms::v1::{TypedPlaintext, UserDecryptionResponse, UserDecryptionResponsePayload};
2018
use kms_grpc::rpc_types::fhe_types_to_num_blocks;
2119
use std::num::Wrapping;
2220
use tfhe::shortint::ClassicPBSParameters;
@@ -39,7 +37,7 @@ cfg_if::cfg_if! {
3937
if #[cfg(feature = "non-wasm")] {
4038
use crate::consts::SAFE_SER_SIZE_LIMIT;
4139
use crate::cryptography::signcryption::ephemeral_encryption_key_generation;
42-
use kms_grpc::kms::v1::TypedCiphertext;
40+
use kms_grpc::kms::v1::{TypedCiphertext,UserDecryptionRequest};
4341
use kms_grpc::rpc_types::{
4442
alloy_to_protobuf_domain,
4543
};

0 commit comments

Comments
 (0)