diff --git a/nucypher-core/src/retrieval_kit.rs b/nucypher-core/src/retrieval_kit.rs index 09bc4c0..9e74d68 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(), diff --git a/nucypher-core/src/treasure_map.rs b/nucypher-core/src/treasure_map.rs index 2afac27..f6b4f0a 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"