Skip to content

Commit

Permalink
implements Copy for ferveo_variant
Browse files Browse the repository at this point in the history
  • Loading branch information
KPrasch committed May 1, 2023
1 parent 6eebc73 commit 37e9215
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion nucypher-core-python/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -669,7 +669,7 @@ impl ThresholdDecryptionRequest {
.map(|conditions| conditions.backend.clone())
.as_ref(),
context.map(|context| context.backend.clone()).as_ref(),
&ferveo_variant,
ferveo_variant,
),
})
}
Expand Down
2 changes: 1 addition & 1 deletion nucypher-core-wasm/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -568,7 +568,7 @@ impl ThresholdDecryptionRequest {
ciphertext,
typed_conditions.as_ref().map(|conditions| &conditions.0),
typed_context.as_ref().map(|context| &context.0),
&ferveo_variant,
ferveo_variant,
)))
}

Expand Down
4 changes: 2 additions & 2 deletions nucypher-core/src/dkg.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,14 +42,14 @@ impl ThresholdDecryptionRequest {
ciphertext: &[u8],
conditions: Option<&Conditions>,
context: Option<&Context>,
variant: &FerveoVariant,
variant: FerveoVariant,
) -> Self {
Self {
ritual_id,
ciphertext: ciphertext.to_vec().into(),
conditions: conditions.cloned(),
context: context.cloned(),
variant: *variant,
variant,
}
}
}
Expand Down

0 comments on commit 37e9215

Please sign in to comment.