You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would like to have a solution that ensures correct typing, such that we have:
/// A message that is used to announce a new block to the network.#[derive(Clone,Debug,PartialEq,Eq,RlpEncodable,RlpDecodable)]pubstructNewBlock{/// The signature from the block author.pubsignature:Signature,/// The block that is being announced.pubblock: reth_scroll_primitives::ScrollBlock,}
The reason we currently don't have this is because Signature does not implement Encodable. We may be able to address this by implementing Encodable ourselves on this type instead of leveraging the macro but I'm not sure. I will open an issue.
Activity
greged93 commentedon Apr 24, 2025
Link to the alloy issue: alloy-rs/core#938
[-]Make `NewBlock::signature` Typed[/-][+][Primitives] Make `NewBlock::signature` Typed[/+]