Skip to content

Commit

Permalink
chore: tidy
Browse files Browse the repository at this point in the history
  • Loading branch information
georgewhewell committed Jul 25, 2023
1 parent bfeb2d7 commit df9ca63
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,9 @@ use gcloud_sdk::{
},
GoogleApi, GoogleAuthMiddleware,
};
// use spki::DecodePublicKey;
use std::fmt::Debug;
use tonic::Request;
use tracing::{debug, instrument, trace};
use tracing::{debug, instrument};

mod error;
pub use error::CKMSError;
Expand Down Expand Up @@ -108,6 +107,7 @@ impl GcpKeyRingRef {
)
}
}

#[derive(Clone)]
pub struct GcpKmsProvider {
client: GoogleApi<KeyManagementServiceClient<GoogleAuthMiddleware>>,
Expand Down Expand Up @@ -240,9 +240,6 @@ impl Signer for GcpKmsSigner {
) -> Result<Signature, Self::Error> {
let message = message.as_ref();
let message_hash = hash_message(message);
trace!("{:?}", message_hash);
trace!("{:?}", message);

self.sign_digest_with_eip155(message_hash, self.chain_id)
.await
}
Expand Down

0 comments on commit df9ca63

Please sign in to comment.