-
Notifications
You must be signed in to change notification settings - Fork 198
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Feature] Add encode/decode for Signed<T: Transaction> #543
Comments
the problem with doing it directly is that the argument to eth_sendRawTransaction is an encoded 2718 envelope, not an encoded signed transaction. It is not recommended to encode a Signed, as there is no endpoint or other behavior that uses that encoding. Using the envelope is always recommended what use case are you looking to satisfy by encoding the Signed? |
I believe this is relevant here |
Sorry for not realizing this was a duplicate! Feel free to close as won't fix. I'd like Signed::encode to be equivalent to TxLegacy::encode_with_signature_fields. The latter is usable with eth_sendRawTransaction. |
also relevant now is #529 which exposed a lot of the inner encoders
It is usable with |
That clarifies things! Thanks for the context. |
Component
consensus, eips, genesis
Describe the feature you would like
To encode a Signed, I need to either:
A) Break it into parts and call encode_with_signature_fields
B) Make a TxEnvelope and encode that
Ideally, I could just encode the Signed directly. This would presumably be by moving
encode_with_signature_fields
to a trait?Additional context
No response
The text was updated successfully, but these errors were encountered: