Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
42 commits
Select commit Hold shift + click to select a range
7c3c6e0
ssz infra
Zacholme7 Sep 2, 2025
2639197
fix validation
Zacholme7 Sep 2, 2025
80809ca
lints
Zacholme7 Sep 2, 2025
7cb61e8
lints
Zacholme7 Sep 2, 2025
7380282
Apply suggestion from @Copilot
Zacholme7 Sep 2, 2025
f61ab9a
Merge branch 'release-v0.3.0' into ssz-infra
Zacholme7 Sep 2, 2025
eb591c8
Merge branch 'ssz-infra' of github.com:Zacholme7/anchor into ssz-infra
Zacholme7 Sep 2, 2025
30c436f
Merge branch 'release-v0.3.0' into ssz-infra
Zacholme7 Sep 2, 2025
7151416
merge and move ssz to try_from
Zacholme7 Sep 3, 2025
327d8ad
size enforcement test
Zacholme7 Sep 3, 2025
cf088f8
fix: update msg_container with latest changes
Zacholme7 Sep 3, 2025
efbc1bf
fix wacky branch
Zacholme7 Sep 3, 2025
e3be77d
helper function for bound checking
Zacholme7 Sep 3, 2025
8aa0b88
Merge branch 'ssz-infra' into ssz-infra-unstable
Zacholme7 Sep 3, 2025
003d110
fix clippy lints on the ssz infra branch
Zacholme7 Sep 3, 2025
04534bd
merge unstable
Zacholme7 Sep 4, 2025
aba71c8
cleanup and error handling conversion
Zacholme7 Sep 4, 2025
fed7112
add in missing conversions, fix clippy & cleanup imports
Zacholme7 Sep 4, 2025
49b778d
remove all spec test related deserialization
Zacholme7 Sep 4, 2025
1544bbd
flip accidently justification field switch
Zacholme7 Sep 4, 2025
1f6628c
easier naming convetions for justifications
Zacholme7 Sep 4, 2025
5893986
pr comments
Zacholme7 Sep 5, 2025
079f898
address pr comments
Zacholme7 Sep 5, 2025
92a6e41
impl clone on msgtype
Zacholme7 Sep 5, 2025
8b5c291
fix clippy lints
Zacholme7 Sep 5, 2025
5309fac
fmt
Zacholme7 Sep 5, 2025
4e5496f
dont clone full data
Zacholme7 Sep 5, 2025
89ab53d
merge in qbft error types
Zacholme7 Sep 8, 2025
21616f7
address pr comments, general nits
Zacholme7 Sep 9, 2025
9b65c1b
fix absolute import
Zacholme7 Sep 9, 2025
ce05b3f
add error variants
Zacholme7 Sep 10, 2025
8ac0859
handle error
Zacholme7 Sep 10, 2025
9428d4a
Merge branch 'unstable' into ssz-infra-unstable
Zacholme7 Sep 11, 2025
020610f
remove type specific validation
Zacholme7 Sep 11, 2025
6205e6f
clean up code and handle errors better
Zacholme7 Sep 12, 2025
023247c
remove full data
Zacholme7 Sep 12, 2025
4c9fa43
sort
Zacholme7 Sep 12, 2025
7de72cc
clean up commit handling
Zacholme7 Sep 13, 2025
4ffe328
fix missing conversion
Zacholme7 Sep 13, 2025
ed0d607
address pr comments
Zacholme7 Sep 16, 2025
4f5a858
remove un-needed type
Zacholme7 Sep 17, 2025
47760eb
merge unstable into ssz infra
Zacholme7 Sep 22, 2025
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
8 changes: 8 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,7 @@ serde = { version = "1.0.208", features = ["derive"] }
serde_json = "1.0.140"
serde_yaml = "0.9"
sha2 = "0.10.8"
ssz_types = "0.11.0"
strum = { version = "0.27.0", features = ["derive"] }
thiserror = "2.0.11"
tokio = { version = "1.39.2", features = [
Expand All @@ -149,6 +150,7 @@ tracing-appender = "0.2"
tracing-subscriber = { version = "0.3.18", features = ["fmt", "env-filter"] }
tree_hash = "0.10"
tree_hash_derive = "0.10"
typenum = "1.18"
vsss-rs = "5.1.0"
zeroize = "1.8.1"

Expand Down
1 change: 1 addition & 0 deletions anchor/common/qbft/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ indexmap = { workspace = true }
sha2 = { workspace = true }
ssv_types = { workspace = true }
tracing = { workspace = true }
typenum = { workspace = true }
types = { workspace = true }

[dev-dependencies]
Expand Down
13 changes: 12 additions & 1 deletion anchor/common/qbft/src/error.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
use ssv_types::message::SignedSSVMessageError;

/// Error associated with Config building.
#[derive(Debug, Clone)]
pub enum ConfigBuilderError {
Expand Down Expand Up @@ -86,15 +88,24 @@ pub enum QbftError {
RoundChangeJustificationNotInCommittee,
RoundChangeJustificationNoPrepareQuorum,
RoundChangeJustificationMultiSigner,
RoundChangeJustificationTooBig { provided: usize, max: usize },
RoundChangeJustificationListTooBig { provided: usize, max: usize },
PrepareJustificationWrongRound,
PrepareJustificationMultiSigner,
PrepareJustificationWrongHeight,
PrepareJustificationNoQuorum,
PrepareJustificationDecodeFailed,
PrepareJustificationNotPrepare,
PrepareJustificationRootMismatch,
PrepareJustificationTooBig { provided: usize, max: usize },
PrepareJustificationListTooBig { provided: usize, max: usize },

// Misc
FailedToAggregate,
MissingLastPreparedValue,
FailedToAggregate(SignedSSVMessageError),
SignedSSVMessageError(SignedSSVMessageError),
InvalidState,
MissingData,
CommitQuorumMismatch,
MissingCommit,
}
Loading