Skip to content

Commit 9dfa719

Browse files
committed
chore: fix linter + import
1 parent 3a48623 commit 9dfa719

File tree

5 files changed

+17
-14
lines changed

5 files changed

+17
-14
lines changed

core/service/src/client/crs_gen.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
use super::*;
2-
use crate::{anyhow_error_and_log, some_or_err};
3-
use alloy_sol_types::Eip712Domain;
42

53
cfg_if::cfg_if! {
64
if #[cfg(feature = "non-wasm")] {
5+
use crate::{anyhow_error_and_log, some_or_err};
6+
use alloy_sol_types::Eip712Domain;
77
use crate::engine::base::compute_handle;
88
use crate::engine::base::DSEP_PUBDATA_CRS;
99
use crate::vault::storage::StorageReader;

core/service/src/client/js_api.rs

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,10 +69,13 @@
6969
//! ```
7070
use crate::consts::SAFE_SER_SIZE_LIMIT;
7171
use crate::cryptography::hybrid_ml_kem;
72-
use crate::cryptography::internal_crypto_types::{PrivateEncKey, PublicEncKey};
72+
use crate::cryptography::internal_crypto_types::{
73+
PrivateEncKey, PublicEncKey, UnifiedPrivateEncKey, UnifiedPublicEncKey,
74+
};
7375
use bc2wrap::{deserialize, serialize};
74-
use kms_grpc::kms::v1::Eip712DomainMsg;
7576
use kms_grpc::kms::v1::FheParameter;
77+
use kms_grpc::kms::v1::UserDecryptionResponse;
78+
use kms_grpc::kms::v1::{Eip712DomainMsg, TypedPlaintext};
7679
use kms_grpc::rpc_types::protobuf_to_alloy_domain;
7780
use threshold_fhe::execution::tfhe_internals::parameters::BC_PARAMS_SNS;
7881

@@ -419,7 +422,7 @@ fn js_to_resp(json: JsValue) -> anyhow::Result<Vec<UserDecryptionResponse>> {
419422
payload: match hex_resp.payload {
420423
Some(inner) => {
421424
let buf = hex::decode(&inner)?;
422-
Some(deserialize(&buf)?)
425+
Some(deserialize::<()>(&buf)?)
423426
}
424427
None => None,
425428
},

core/service/src/client/key_gen.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
use super::*;
2-
use crate::{anyhow_error_and_log, some_or_err};
3-
use alloy_sol_types::Eip712Domain;
42
cfg_if::cfg_if! {
53
if #[cfg(feature = "non-wasm")] {
4+
use crate::{anyhow_error_and_log, some_or_err};
5+
use alloy_sol_types::Eip712Domain;
66
use crate::engine::base::compute_handle;
77
use crate::engine::base::DSEP_PUBDATA_KEY;
88
use crate::vault::storage::StorageReader;

core/service/src/client/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
1-
use crate::anyhow_error_and_log;
21
use crate::cryptography::internal_crypto_types::Signature;
32
use crate::cryptography::internal_crypto_types::{PrivateSigKey, PublicSigKey};
43
use aes_prng::AesRng;
54
use alloy_sol_types::Eip712Domain;
65
use alloy_sol_types::SolStruct;
7-
use itertools::Itertools;
86
use kms_grpc::kms::v1::UserDecryptionRequest;
97
use kms_grpc::rpc_types::UserDecryptionLinker;
108
use rand::SeedableRng;
@@ -15,6 +13,8 @@ use wasm_bindgen::prelude::*;
1513

1614
cfg_if::cfg_if! {
1715
if #[cfg(feature = "non-wasm")] {
16+
use crate::anyhow_error_and_log;
17+
use itertools::Itertools;
1818
use crate::consts::{DEFAULT_PROTOCOL, DEFAULT_URL, MAX_TRIES};
1919
use crate::engine::base::BaseKmsStruct;
2020
use crate::engine::traits::BaseKms;

core/service/src/client/public_decryption.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
use super::*;
2-
use crate::cryptography::internal_crypto_types::PublicSigKey;
3-
use crate::cryptography::internal_crypto_types::Signature;
4-
use crate::{anyhow_error_and_log, some_or_err};
5-
use alloy_sol_types::Eip712Domain;
6-
use kms_grpc::kms::v1::TypedPlaintext;
72

83
cfg_if::cfg_if! {
94
if #[cfg(feature = "non-wasm")] {
5+
use crate::cryptography::internal_crypto_types::PublicSigKey;
6+
use crate::cryptography::internal_crypto_types::Signature;
7+
use crate::{anyhow_error_and_log, some_or_err};
8+
use alloy_sol_types::Eip712Domain;
9+
use kms_grpc::kms::v1::TypedPlaintext;
1010
use crate::engine::base::BaseKmsStruct;
1111
use crate::engine::traits::BaseKms;
1212
use crate::engine::validation::validate_public_decrypt_responses_against_request;

0 commit comments

Comments
 (0)