Skip to content

Conversation

danlaine
Copy link
Collaborator

@danlaine danlaine commented May 16, 2025

No description provided.

@danlaine danlaine self-assigned this May 19, 2025
/// An object that shares a (commitment) [Digest] with other, related values.
pub trait Committable<D: Digest>: Clone + Sized + Send + Sync + 'static {
/// An object that can produce a commitment of itself.
pub trait Committable: Clone + Sized + Send + Sync + 'static {
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

We could add Committable: Digestible to make:

pub struct Engine<E: Clock + Spawner + Metrics, P: Array, M: Committable + Digestible + Codec> {

into

pub struct Engine<E: Clock + Spawner + Metrics, P: Array, M: Committable + Codec> {

but I think it'd be OK to leave as is, too.

Copy link
Contributor

Choose a reason for hiding this comment

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

As discussed offline, I think it makes sense to keep these separate 👍

@danlaine danlaine requested a review from patrick-ogrady May 23, 2025 16:51
@patrick-ogrady patrick-ogrady modified the milestones: v0.0.53, v0.0.54 May 25, 2025
index.html Outdated
Copy link
Contributor

Choose a reason for hiding this comment

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

I think this snuck in here @danlaine

pub struct Engine<
E: Clock + Spawner + Metrics,
P: Array,
Dc: Digest,
Copy link
Contributor

Choose a reason for hiding this comment

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

Not sure why I didn't think to myself "there must be a better way" when adding this 😓 .

@patrick-ogrady patrick-ogrady merged commit 19d7017 into main May 27, 2025
13 checks passed
@patrick-ogrady patrick-ogrady deleted the danlaine/crypto-trait-refactor branch May 27, 2025 17:41
Copy link

codecov bot commented May 27, 2025

Codecov Report

Attention: Patch coverage is 90.47619% with 2 lines in your changes missing coverage. Please review.

Project coverage is 90.79%. Comparing base (2efe85f) to head (d007bec).
Report is 2 commits behind head on main.

Files with missing lines Patch % Lines
broadcast/src/buffered/ingress.rs 81.81% 2 Missing ⚠️
@@           Coverage Diff           @@
##             main     #945   +/-   ##
=======================================
  Coverage   90.79%   90.79%           
=======================================
  Files         190      190           
  Lines       52630    52632    +2     
=======================================
+ Hits        47787    47789    +2     
  Misses       4843     4843           
Files with missing lines Coverage Δ
broadcast/src/buffered/engine.rs 93.82% <100.00%> (ø)
broadcast/src/buffered/mocks.rs 100.00% <ø> (ø)
broadcast/src/buffered/mod.rs 99.58% <100.00%> (-0.01%) ⬇️
cryptography/src/lib.rs 100.00% <ø> (ø)
broadcast/src/buffered/ingress.rs 76.38% <81.81%> (+1.76%) ⬆️

Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 2efe85f...d007bec. Read the comment docs.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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