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

Take an iterable of capsule and vcfrag in ReencryptionResponse constructor #37

Merged
merged 4 commits into from
Oct 2, 2022

Conversation

fjarri
Copy link
Contributor

@fjarri fjarri commented Oct 1, 2022

  • Take an iterable of (Capsule, VerifiedCapsuleFrag) tuples ReencryptionResponse::new() (and change bindings correspondingly)
  • Replace Iterable with Sequence in Python bindgins: PyO3 cannot take generators as parameters.
  • AuthorizedKeyFrag.verify(), ReencryptionResponse.verify(), and AuthorizedTreasureMap.verify() now consume self, to match Umbral and the other nucypher-core's verify() methods.

@codecov-commenter
Copy link

codecov-commenter commented Oct 1, 2022

Codecov Report

❗ No coverage uploaded for pull request base (main@d44d506). Click here to learn what that means.
The diff coverage is n/a.

❗ Current head 8e3eed9 differs from pull request most recent head cb9a7c2. Consider uploading reports for the commit cb9a7c2 to get more accurate results

@@           Coverage Diff           @@
##             main      #37   +/-   ##
=======================================
  Coverage        ?   16.09%           
=======================================
  Files           ?       12           
  Lines           ?      466           
  Branches        ?        0           
=======================================
  Hits            ?       75           
  Misses          ?      391           
  Partials        ?        0           

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@fjarri fjarri merged commit 6c1a471 into nucypher:main Oct 2, 2022
@fjarri fjarri deleted the stricter-iters branch October 2, 2022 21:56
umbral_pre::VerifiedCapsuleFrag::from(vcfrag),
)
})
.unzip();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a lot for one line, cognitively speaking... so, we're basically mapping the objects to different types, and the unzipping the two sides of the iterable into two new locals, capsules_backend and vcfrags_backend?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants