From b0ba317ddf12191783552916c516234845735521 Mon Sep 17 00:00:00 2001 From: jayt106 Date: Fri, 21 Jun 2024 16:47:30 -0400 Subject: [PATCH] fix import lib --- core/lib/eth_signer/Cargo.toml | 12 ------------ core/lib/eth_signer/src/g_kms_signer.rs | 4 +--- 2 files changed, 1 insertion(+), 15 deletions(-) diff --git a/core/lib/eth_signer/Cargo.toml b/core/lib/eth_signer/Cargo.toml index ce908bc5f..ab8f1d3f2 100644 --- a/core/lib/eth_signer/Cargo.toml +++ b/core/lib/eth_signer/Cargo.toml @@ -16,21 +16,9 @@ thiserror.workspace = true async-trait.workspace = true google-cloud-kms = { git="https://github.com/yoshidan/google-cloud-rust.git", rev="eb15032", features=["eth"]} google-cloud-auth = { git="https://github.com/yoshidan/google-cloud-rust.git", rev="eb15032"} -google-cloud-googleapis = { git="https://github.com/yoshidan/google-cloud-rust.git", rev="eb15032", features=["kms"]} -openssl = "0.10.64" -tiny-keccak = "2.0.2" hex = "0.4.3" -asn1-rs = { version = "0.6.1", features = ["bigint"]} -secp256k1 = {version="0.29.0", features=["std", "recovery"]} -num-bigint = "0.4.5" -num-traits = "0.2.19" tracing = "0.1" -x509-parser = "0.16" -byte-slice-cast = "1.2.2" - -# ethereum ethers-signers = { version = "2.0"} -ethers-core = { version = "2.0"} [dev-dependencies] tokio = { workspace = true, features = ["full"] } diff --git a/core/lib/eth_signer/src/g_kms_signer.rs b/core/lib/eth_signer/src/g_kms_signer.rs index 46f832065..a2a167d8a 100644 --- a/core/lib/eth_signer/src/g_kms_signer.rs +++ b/core/lib/eth_signer/src/g_kms_signer.rs @@ -1,6 +1,5 @@ use std::result::Result; -use byte_slice_cast::AsByteSlice; use ethers_signers::Signer as EthSigner; use google_cloud_auth::credentials::CredentialsFile; use google_cloud_kms::{ @@ -8,11 +7,10 @@ use google_cloud_kms::{ signer::ethereum::Signer, }; use hex; -pub use num_bigint::BigUint; use tracing::{self}; use zksync_types::{ web3::{keccak256, Signature}, - Address, EIP712TypedStructure, Eip712Domain, PackedEthSignature, H256, + Address, EIP712TypedStructure, Eip712Domain, PackedEthSignature, H256, U256, }; use crate::{