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

make vdaf::verify_finish take a slice #85

Merged
merged 1 commit into from
Sep 28, 2021
Merged

Commits on Sep 28, 2021

  1. make vdaf::verify_finish take IntoIterator

    `verify_finish` wants to consume a collection of `VerifierMessage`.
    Accomplishing this with `Vec<VerifierMessage>` forces allocation and
    copying to the heap. We instead take `IntoIterator<Item =
    VerifierMessage>`, which allows callers to pass either a slice of
    `VerifierMessage` on the stack or a `Vec` on the heap, or anything else
    that implements `IntoIterator`. Besides the flexibility,
    `IntoIterator.into_iter` is infallible, so this doesn't introduce any
    new error cases to handle.
    tgeoghegan committed Sep 28, 2021
    Configuration menu
    Copy the full SHA
    dd4c7b8 View commit details
    Browse the repository at this point in the history