Skip to content
Open
Show file tree
Hide file tree
Changes from 57 commits
Commits
Show all changes
61 commits
Select commit Hold shift + click to select a range
9e54547
Dutydb first attempt
mskrzypkows May 13, 2026
d484a3b
style improvements
mskrzypkows May 13, 2026
33c0a21
await_data method
mskrzypkows May 13, 2026
cfc77a6
rwlock instead of mutex
mskrzypkows May 13, 2026
d4e9e4a
renamed variables
mskrzypkows May 14, 2026
5303946
State struct methods
mskrzypkows May 14, 2026
0dce2ad
improved test
mskrzypkows May 14, 2026
fd6b97d
Locking state after adding duty to the deadliner in store function
mskrzypkows May 14, 2026
d62c106
fixed Dead clash check in store_agg_attestation
mskrzypkows May 14, 2026
84e8fe3
store_agg_attestation inserting only when not slot present
mskrzypkows May 14, 2026
90bcb60
fmt
mskrzypkows May 14, 2026
cb8a5a6
return early on DeprecatedDutyBuilderProposer
mskrzypkows May 14, 2026
5719029
redundant enable
mskrzypkows May 15, 2026
923d9cb
removed Option from the State, deadliner field.
mskrzypkows May 15, 2026
aab5845
comment ported from charon
mskrzypkows May 15, 2026
0864a16
additional, missing tests
mskrzypkows May 15, 2026
8f21930
rephrased error messages
mskrzypkows May 15, 2026
c3b0844
Fixed bug with second aggregations on the same slot
mskrzypkows May 15, 2026
bbd4be3
clippy
mskrzypkows May 15, 2026
32486ca
fixed #7
mskrzypkows May 15, 2026
a7d8a16
better implementation of the #1
mskrzypkows May 15, 2026
6836a4c
Impl Drop for MemDB
mskrzypkows May 15, 2026
9933d7e
fixed comment 2
mskrzypkows May 15, 2026
fbd66ec
More detailed errors
mskrzypkows May 15, 2026
63dc968
fix comment 11
mskrzypkows May 15, 2026
9f5284f
fix unneeded pub(crate)
mskrzypkows May 15, 2026
5f62b23
comment
mskrzypkows May 15, 2026
b7946d5
additional tests
mskrzypkows May 15, 2026
249bd82
Merge branch 'main' of github.com:NethermindEth/pluto into dutydb
mskrzypkows May 19, 2026
a17b5e9
removed unused, renamed variables
mskrzypkows May 19, 2026
0628163
comment fixed
mskrzypkows May 19, 2026
2db5faf
more comments fixed
mskrzypkows May 19, 2026
eefe1c9
comment updated
mskrzypkows May 19, 2026
dd3a513
more uses, removed export o Result
mskrzypkows May 19, 2026
f113de9
Checkpoint::default()
mskrzypkows May 19, 2026
2b2fe1f
renamed variables
mskrzypkows May 19, 2026
4475303
sigagg first attempt
mskrzypkows May 20, 2026
5465002
More error cases, additional tests
mskrzypkows May 20, 2026
ad74895
Safe conversion from u64 to u8
mskrzypkows May 21, 2026
9828f7b
Better erros for aggregate_one
mskrzypkows May 21, 2026
b0b12c6
Merge branch 'main' of github.com:NethermindEth/pluto into sigagg
mskrzypkows May 21, 2026
a688407
comment for aggregate_one
mskrzypkows May 21, 2026
a546f80
info_span as in charon
mskrzypkows May 21, 2026
a5ad6cd
unneeded Sync in functions results
mskrzypkows May 21, 2026
184b70f
set passed as ref to aggregate function
mskrzypkows May 21, 2026
df6b0fa
pub result
mskrzypkows May 21, 2026
05e25e4
fixed top comment
mskrzypkows May 21, 2026
318617d
Merge branch 'main' of github.com:NethermindEth/pluto into sigagg
mskrzypkows May 21, 2026
92125d5
Additional tests suggested by claude
mskrzypkows May 21, 2026
ad3a123
additional comment
mskrzypkows May 21, 2026
f980872
Merge branch 'main' of github.com:NethermindEth/pluto into sigagg
mskrzypkows May 25, 2026
a672b8b
Signature from the crypto crate
mskrzypkows May 25, 2026
ccf9f68
review
mskrzypkows May 25, 2026
32b07fb
share_idx in ParSignedData changed to u8
mskrzypkows May 25, 2026
cf1bbec
fmt
mskrzypkows May 25, 2026
de410ad
clippy
mskrzypkows May 25, 2026
bc54078
adjusted spans to match charon's logging
mskrzypkows May 25, 2026
327c4ce
Unneeded dependency in core/Cargo.toml
mskrzypkows May 26, 2026
de42a32
Merge branch 'main' of github.com:NethermindEth/pluto into sigagg
mskrzypkows May 26, 2026
9a074c5
peer index and share index as u64 values
mskrzypkows May 26, 2026
88213bc
Merge branch 'main' into sigagg
mskrzypkows May 26, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions crates/core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ prost-types.workspace = true
hex.workspace = true
chrono.workspace = true
test-case.workspace = true
pluto-crypto.workspace = true
Comment thread
mskrzypkows marked this conversation as resolved.
Outdated
pluto-eth2util.workspace = true
pluto-cluster.workspace = true
pluto-p2p.workspace = true
Expand Down
3 changes: 3 additions & 0 deletions crates/core/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ pub mod parsigdb;
/// DutyDB — in-memory store for unsigned duty data.
pub mod dutydb;

/// SigAgg — threshold BLS signature aggregation.
pub mod sigagg;

mod parsigex_codec;
// SSZ codec operates on compile-time-constant byte sizes and offsets.
// Arithmetic is bounded and casts from `usize` to `u32` are safe because all
Expand Down
2 changes: 1 addition & 1 deletion crates/core/src/parsigdb/memory.rs
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ pub enum MemDBError {
/// Public key of the validator
pubkey: PubKey,
/// Share index of the mismatched signature
share_idx: u64,
share_idx: u8,
},

/// Signed data error.
Expand Down
6 changes: 3 additions & 3 deletions crates/core/src/parsigdb/memory_internal_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ async fn test_get_threshold_matching(input: Vec<usize>, output: Vec<usize>) {
signature: testutil::random_eth2_signature_bytes(),
};

SignedSyncMessage::new_partial(message, u64::try_from(i.wrapping_add(1)).unwrap())
SignedSyncMessage::new_partial(message, u8::try_from(i.wrapping_add(1)).unwrap())
}),
),
(
Expand All @@ -65,7 +65,7 @@ async fn test_get_threshold_matching(input: Vec<usize>, output: Vec<usize>) {

BeaconCommitteeSelection::new_partial(
selection,
u64::try_from(i.wrapping_add(1)).unwrap(),
u8::try_from(i.wrapping_add(1)).unwrap(),
)
}),
),
Expand Down Expand Up @@ -135,7 +135,7 @@ async fn memdb_threshold() {
for i in 0..N {
let partial = VersionedAttestation::new_partial(
attestation.clone(),
u64::try_from(i + 1).unwrap(),
u8::try_from(i + 1).unwrap(),
)
.expect("versioned attestation should be valid");

Expand Down
Loading
Loading