Skip to content

Commit 4e68ef9

Browse files
authored
feat(core): implement signeddata (#273)
* feat(eth2api): implement types for signeddata * fix(crypto): remove cycle dependencies * feat(eth2util): implement eth2util types wrapper version * fix(eth2api): update comment * feat(eth2util): implement eth2util SignedEpoch * feat(core): implement signeddata * refactor(signeddata): simplify struct * fix: update comment eth2util::types * fix: poc of reuse alloy * fix: lowercase in goldentest * Revert "fix: lowercase in goldentest" This reverts commit ba8d6b7. * Revert "fix: poc of reuse alloy" This reverts commit bbd45d0. * fix: remove ssz_derive * fix: simplify test signeddata * fix: self-implement BitList and BitVector * fix: fmt * fix: using serde_with for SignedEpoch * fix: reorganize tests, using same file as charon * fix: claude review * fix: remove ssz as dependencies on dev
1 parent e41e6d9 commit 4e68ef9

50 files changed

Lines changed: 11802 additions & 72 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

Cargo.lock

Lines changed: 10 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

crates/core/Cargo.toml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,20 +13,27 @@ crossbeam.workspace = true
1313
hex.workspace = true
1414
serde.workspace = true
1515
serde_json.workspace = true
16+
serde_with.workspace = true
17+
base64.workspace = true
1618
thiserror.workspace = true
1719
tokio.workspace = true
1820
libp2p.workspace = true
1921
regex.workspace = true
2022
prost.workspace = true
2123
prost-types.workspace = true
24+
pluto-eth2api.workspace = true
25+
pluto-eth2util.workspace = true
26+
tree_hash.workspace = true
2227

2328
[dev-dependencies]
29+
alloy.workspace = true
2430
rand.workspace = true
2531
libp2p.workspace = true
2632
prost.workspace = true
2733
prost-types.workspace = true
2834
hex.workspace = true
2935
chrono.workspace = true
36+
test-case.workspace = true
3037

3138
[build-dependencies]
3239
pluto-build-proto.workspace = true

crates/core/src/lib.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ pub mod qbft;
88
/// Types for the Charon core.
99
pub mod types;
1010

11+
/// Signed data wrappers and helpers.
12+
pub mod signeddata;
13+
1114
/// Consensus-related functionality.
1215
pub mod consensus;
1316

0 commit comments

Comments
 (0)