Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix typos #91

Merged
merged 2 commits into from
Jan 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion nucypher-core/src/retrieval_kit.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand Down
6 changes: 3 additions & 3 deletions nucypher-core/src/treasure_map.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ impl TreasureMap {
assigned_kfrags: impl IntoIterator<Item = (Address, (PublicKey, VerifiedKeyFrag))>,
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.
Expand All @@ -60,15 +60,15 @@ 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)
)
};
}

// 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"
Expand Down
Loading