Skip to content

Conversation

spiral-ladder
Copy link
Contributor

Adds support for BlindedBeaconBlock and BlindedBeaconBlockBody with a sanity test.

@spiral-ladder spiral-ladder self-assigned this Jul 28, 2025
Copy link

github-actions bot commented Jul 28, 2025

Performance Report

✔️ no performance regression detected

Full benchmark results
Benchmark suite Current: 8bc485f Previous: null Ratio
get values - 1000 334.00 ns/op
get values - naive - 1000 509.00 ns/op
set values - 1000 327.00 ns/op
set values - naive - 1000 633.00 ns/op
get values - 1000000 869.00 ns/op
get values - naive - 1000000 1.5260 us/op
set values - 1000000 819.00 ns/op
set values - naive - 1000000 2.0600 us/op
JS - computeSyncCommitteeIndices - 16384 indices 298.49 ms/op
Zig - computeSyncCommitteeIndices - 16384 indices 3.9268 ms/op
JS - computeSyncCommitteeIndices - 250000 indices 289.65 ms/op
Zig - computeSyncCommitteeIndices - 250000 indices 16.823 ms/op
JS - computeSyncCommitteeIndices - 1000000 indices 304.62 ms/op
Zig - computeSyncCommitteeIndices - 1000000 indices 30.786 ms/op
JS - unshuffleList - 16384 indices 957.37 us/op
Zig - unshuffleList - 16384 indices 576.78 us/op
JS - unshuffleList - 250000 indices 14.160 ms/op
Zig - unshuffleList - 250000 indices 8.7180 ms/op
JS - unshuffleList - 1000000 indices 57.763 ms/op
Zig - unshuffleList - 1000000 indices 35.872 ms/op

by benchmarkbot/action

@spiral-ladder spiral-ladder force-pushed the bing/blinded-types branch 2 times, most recently from 5913a73 to f27e4a8 Compare July 28, 2025 04:14
Copy link
Contributor Author

Choose a reason for hiding this comment

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

this is extracted to #31

@spiral-ladder spiral-ladder requested a review from twoeths July 28, 2025 04:15
@spiral-ladder spiral-ladder marked this pull request as ready for review July 28, 2025 04:24
};
}

pub fn getGraffity(self: *const BlindedBeaconBlockBody) ssz.primitive.Bytes32.Type {
Copy link

Choose a reason for hiding this comment

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

There's a typo in the function name getGraffity() - it should be getGraffiti() to match the field name graffiti in the block body structure. This would maintain consistency with the field naming convention used throughout the codebase.

Suggested change
pub fn getGraffity(self: *const BlindedBeaconBlockBody) ssz.primitive.Bytes32.Type {
pub fn getGraffiti(self: *const BlindedBeaconBlockBody) ssz.primitive.Bytes32.Type {

Spotted by Diamond

Is this helpful? React 👍 or 👎 to let us know.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

inconsistent with the upstream branch; not implementing for now.

@spiral-ladder spiral-ladder merged commit d5037aa into te/naive_state_transition Jul 28, 2025
13 checks passed
spiral-ladder added a commit that referenced this pull request Jul 30, 2025
feat(types): add support for blinded block variants
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.

1 participant