alloy-rs / alloy

Transports, Middleware, and Networks for the Alloy project
https://alloy.rs
Apache License 2.0
528 stars 180 forks source link

[Feature] add ssz support for beacon request types #1004

Open mattsse opened 1 month ago

mattsse commented 1 month ago

Component

rpc

Describe the feature you would like

spec: https://flashbots.github.io/relay-specs/#/

blocks can be submitted as josn or ssz

we currently don't have ssz support for the submit types:

https://github.com/alloy-rs/alloy/blob/095ed893f73487ed5cba22b7e14b429c0873e102/crates/rpc-types-beacon/src/relay.rs#L125-L129

TODO

see also: https://github.com/flashbots/builder/blob/df9c765067d57ab4b2d0ad39dbb156cbe4965778/builder/relay.go#L137-L154C31 https://github.com/attestantio/go-builder-client/blob/73e0a0b2ce80aac4db7705ac3af06e6b85b0d64a/api/deneb/submitblockrequest_ssz.go#L14

Additional context

No response

programskillforverification commented 1 month ago

I want to try this. Could you assign to me?