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
Please keep in mind that v, depending on the context depends on the chain ID and in the future may further be hijacked (e.g. EIP 186) to have additional meanings. The recoveryParam is either 0 or 1. The value you need to pass into ecrecover in solidity is (27 + recoveryParam), which is the same as the unspecified network (i.e. chain ID 0). For other chain ID, v is ((35 + 2 * chainID) + recoveryParam).
ricmoo
changed the title
Util function to get v, r and s values from a signed message
Add Recipe: Util function to get v, r and s values from a signed message
Nov 27, 2017
It would be nice to have a cryptographic utility function that returns the r, s and v values of a signature. These values are calculated as follows
For more details see https://ethereum.stackexchange.com/questions/1777/workflow-on-signing-a-string-with-private-key-followed-by-signature-verificatio
The text was updated successfully, but these errors were encountered: