From 6ad64e99ed7e5d111b92293743cfeccaaacb5e5a Mon Sep 17 00:00:00 2001 From: GoodDaisy <90915921+GoodDaisy@users.noreply.github.com> Date: Sun, 28 Jan 2024 11:46:01 +0800 Subject: [PATCH 1/2] fix typo in treasure_map.rs --- nucypher-core/src/treasure_map.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/nucypher-core/src/treasure_map.rs b/nucypher-core/src/treasure_map.rs index 2afac277..f6b4f0af 100644 --- a/nucypher-core/src/treasure_map.rs +++ b/nucypher-core/src/treasure_map.rs @@ -46,7 +46,7 @@ impl TreasureMap { assigned_kfrags: impl IntoIterator, threshold: u8, ) -> Self { - // Panic here since violation of theis condition indicates a bug on the caller's side. + // Panic here since violation of this condition indicates a bug on the caller's side. assert!(threshold != 0, "threshold must be non-zero"); // Encrypt each kfrag for an Ursula. @@ -60,7 +60,7 @@ impl TreasureMap { .is_some() { // This means there are repeating addresses in the mapping. - // Panic here since violation of theis condition indicates a bug on the caller's side. + // Panic here since violation of this condition indicates a bug on the caller's side. panic!( "{}", format!("Repeating address in assigned_kfrags: {:?}", ursula_address) @@ -68,7 +68,7 @@ impl TreasureMap { }; } - // Panic here since violation of theis condition indicates a bug on the caller's side. + // Panic here since violation of this condition indicates a bug on the caller's side. assert!( destinations.len() >= threshold as usize, "threshold cannot be larger than the total number of shares" From 171393702ce6fcda4a146aab16a27f441efcf5b6 Mon Sep 17 00:00:00 2001 From: GoodDaisy <90915921+GoodDaisy@users.noreply.github.com> Date: Sun, 28 Jan 2024 11:46:10 +0800 Subject: [PATCH 2/2] fix typo in retrieval_kit.rs --- nucypher-core/src/retrieval_kit.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nucypher-core/src/retrieval_kit.rs b/nucypher-core/src/retrieval_kit.rs index 09bc4c06..9e74d68c 100644 --- a/nucypher-core/src/retrieval_kit.rs +++ b/nucypher-core/src/retrieval_kit.rs @@ -26,7 +26,7 @@ pub struct RetrievalKit { } impl RetrievalKit { - /// Creates a new retrival kit from a message kit. + /// Creates a new retrieval kit from a message kit. pub fn from_message_kit(message_kit: &MessageKit) -> Self { Self { capsule: message_kit.capsule.clone(),