Skip to content

Commit

Permalink
Forgot to turn my formatter back on after adding Github Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
amika-sq committed Dec 4, 2023
1 parent 913aa05 commit 61fbcab
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
2 changes: 1 addition & 1 deletion crates/crypto/src/key_manager/key_manager.rs
Original file line number Diff line number Diff line change
@@ -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;

Expand Down
12 changes: 9 additions & 3 deletions crates/crypto/src/key_manager/local_key_manager.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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";
Expand All @@ -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();
Expand Down

0 comments on commit 61fbcab

Please sign in to comment.