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

Boomerang spending verify #61

Merged
merged 12 commits into from
Jul 1, 2024
Merged

Boomerang spending verify #61

merged 12 commits into from
Jul 1, 2024

Conversation

ankeleralph
Copy link
Collaborator

This PR contains the spend/verify protocol of the boomerang protocol.

ankeleralph and others added 12 commits July 1, 2024 12:43
Just some simple cleanup of the new boomerang code.

- Pass single-argument functions directly to map() instead of
  wrapping them in a redundant closure.
- .flat_map() can be faster than .map().flatten()
- follow clippy's redundant field names lint even though
  we're renaming most fields.
- Shorter vec-of-constants initializer.
This builds fine with stable rust, at least as of 1.70.
Lint cleanup:

- Avoid redundant field names
- Remove unnecessary references
  e.g. .first() and .last() already return references
- Prefer slices over `&Vec` as they're more general
Address a `cargo audit` warning about the atty transitive dependency
of earlier versions of this benchmark framework. No api changes
necessary.
Remove redundant field name to satisfy clippy.
The `#[derive(Clone)]` macro doesn't support marker traits like
`BoomerangConfig` so we have to implement this tree manually.

Thanks to Sofía Celi for pointing out the solution.
@ankeleralph ankeleralph merged commit cd7d9a3 into main Jul 1, 2024
2 of 3 checks passed
@ankeleralph ankeleralph deleted the boomerang-spending-verify branch July 1, 2024 12:45
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.

2 participants