-
Notifications
You must be signed in to change notification settings - Fork 678
Update ethereumjs-util to v6 #427
Comments
The specific change needed is in the As an alternative fix, if updating this dependency is too much work at the moment, maybe we can just copy the new function and use it? |
@frangio, thanks for reporting this issue! I'm in the process of reviewing a PR now that will update I'm hoping there is more clarity on this as soon as possible. |
Hey @nicholasjpaterno! I've been following this issue as I'm one of the maintainers of ethereumjs. My understanding is that the comment you linked is based on a misinterpretation of an internal change of Geth that shouldn't affect its users. Péter from the Geth team gave a nice explanation about it here. Let me know if you have trouble updating any of the ethereumjs libraries. I'm happy to help. |
Thanks, @alcuadrado. In order to not introduce a breaking change at this time I'm considering updating our usage of What are your thoughts on Ganache keeping the 0/1 encoding (instead of 27/28) around for a bit longer? |
I understand that it's a breaking change, so it should be introduced in your next major release. This behavior has been present for so long that changing it in a minor version will probably break too many things. I'm not 100% sure about this, as most people dealing with signatures already has code in place to somehow normalize them. In my experience, this has always been a source of frustration when signing using Ganache or previous versions of ethereumjs-util. Until recently, using As a data point, I just confirmed with @frangio that OpenZeppelin's signature verification library only accepts |
The latest
ethereumjs-util
release is 6.1.0 and Ganache is still using 5.2.0.I'm asking for this mainly because of this change that was introduced in 6.0.0:
To protect devs from signature malleability OpenZeppelin has restricted the accepted signatures to those with
v
in range 27/28, thus Ganache generated signatures are not validating. See OpenZeppelin/openzeppelin-contracts#1622.The text was updated successfully, but these errors were encountered: