Skip to content

Commit

Permalink
documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
abdulmth committed Feb 20, 2024
1 parent cbb88bf commit 051e8a7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions identity_stronghold/src/stronghold_jwk_storage.rs
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ impl StrongholdStorage {
}
}

/// Retrieve the public key corresponding to `key_id`.
pub async fn get_public_key(&self, key_id: &KeyId) -> KeyStorageResult<Jwk> {
let stronghold = self.get_stronghold().await;
let client = get_client(&stronghold)?;
Expand Down
1 change: 1 addition & 0 deletions identity_stronghold/src/tests/test_jwk_storage.rs
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ async fn key_exists() {
// Tests the cases that require persisting to disk, generate, insert and delete.
#[tokio::test]
async fn write_to_disk() {
iota_stronghold::engine::snapshot::try_set_encrypt_work_factor(0).unwrap();
const PASS: &str = "secure_password";
let file: PathBuf = create_temp_file();
let secret_manager = StrongholdSecretManager::builder()
Expand Down

0 comments on commit 051e8a7

Please sign in to comment.