From 61fbcaba7e88b24f622a6eb8b3f0623c7401d71b Mon Sep 17 00:00:00 2001 From: Adam Mika Date: Mon, 4 Dec 2023 10:14:25 -0700 Subject: [PATCH] Forgot to turn my formatter back on after adding Github Actions --- crates/crypto/src/key_manager/key_manager.rs | 2 +- crates/crypto/src/key_manager/local_key_manager.rs | 12 +++++++++--- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/crates/crypto/src/key_manager/key_manager.rs b/crates/crypto/src/key_manager/key_manager.rs index f12e6522..21cdef52 100644 --- a/crates/crypto/src/key_manager/key_manager.rs +++ b/crates/crypto/src/key_manager/key_manager.rs @@ -1,4 +1,4 @@ -use crate::key::{KeyError, KeyAlgorithm, PublicKey}; +use crate::key::{KeyAlgorithm, KeyError, PublicKey}; use crate::key_manager::key_store::KeyStoreError; use ssi_jwk::Error as JWKError; diff --git a/crates/crypto/src/key_manager/local_key_manager.rs b/crates/crypto/src/key_manager/local_key_manager.rs index dbe67549..13640c5d 100644 --- a/crates/crypto/src/key_manager/local_key_manager.rs +++ b/crates/crypto/src/key_manager/local_key_manager.rs @@ -91,7 +91,9 @@ mod tests { fn test_get_public_key() { let key_manager = LocalKeyManager::new_in_memory(); - let key_alias = key_manager.generate_private_key(KeyAlgorithm::Ed25519).unwrap(); + let key_alias = key_manager + .generate_private_key(KeyAlgorithm::Ed25519) + .unwrap(); key_manager .get_public_key(&key_alias) @@ -102,7 +104,9 @@ mod tests { #[test] fn test_sign() { let key_manager = LocalKeyManager::new_in_memory(); - let key_alias = key_manager.generate_private_key(KeyAlgorithm::Ed25519).unwrap(); + let key_alias = key_manager + .generate_private_key(KeyAlgorithm::Ed25519) + .unwrap(); // Sign a payload let payload: &[u8] = b"hello world"; @@ -117,7 +121,9 @@ mod tests { #[test] fn test_alias() { let key_manager = LocalKeyManager::new_in_memory(); - let key_alias = key_manager.generate_private_key(KeyAlgorithm::Ed25519).unwrap(); + let key_alias = key_manager + .generate_private_key(KeyAlgorithm::Ed25519) + .unwrap(); let public_key = key_manager.get_public_key(&key_alias).unwrap().unwrap(); let alias = key_manager.alias(&public_key).unwrap();