-
Notifications
You must be signed in to change notification settings - Fork 177
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
[Bug] PrimitiveSignature doesn't support serialized Signature #831
Comments
Hello @gusinacio , sorry for leaving a comment here without respecting the team rules. As a blockchain developer, I think my tech stack is fit for the team project. So I want to prove my skills by solving some team issues and join the team as a full-time developer. Could you give me a test task? |
@klkvr I assume this happens because of core/crates/primitives/src/signature/primitive_sig.rs Lines 380 to 381 in f8d55dd
|
I think it's related to core/crates/primitives/src/signature/primitive_sig.rs Lines 389 to 390 in f8d55dd
Since older signatures could have 27/28 for NonEip155 or bigger equal than 35 for Eip155, It's not possible to deserialize using PrimitiveSignature. |
@gusinacio with #832 this should deserialize correctly, however note that if we receive a signature with eip155 value for |
Thanks for the quick response and resolution! I'm using signatures with Eip712 so I don't need information about ChainId because it's already in the domain. As long as it can deserialize correctly and recover the signer address, I'm happy. |
Hi there, is there any release schedule for this fix to be added? |
Component
primitives
What version of Alloy are you on?
0.8
Operating System
None
Describe the bug
My current system uses serialization and deserialization to send signatures via the network. We were using
Signature
but since version 0.4.2, it was deprecated to usePrimitiveSignature
. The problem is that I don't control the clients and if they update to the latest version or not, so I'm still receiving older signatures.I had to revert because the deserialization couldn't process the parity if it were
Eip155
orNonEip155
.I don't know if this is considered a breaking change or if you have any suggestions for fixing this problem.
The text was updated successfully, but these errors were encountered: