Commit 88dc6e09 by github-actions

Merge upstream master into patched/master

parents a4c80367 da3a9ae1
...@@ -117,12 +117,8 @@ library ECDSA { ...@@ -117,12 +117,8 @@ library ECDSA {
bytes32 r, bytes32 r,
bytes32 vs bytes32 vs
) internal pure returns (address, RecoverError) { ) internal pure returns (address, RecoverError) {
bytes32 s; bytes32 s = vs & bytes32(0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff);
uint8 v; uint8 v = uint8((uint256(vs) >> 255) + 27);
assembly {
s := and(vs, 0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff)
v := add(shr(255, vs), 27)
}
return tryRecover(hash, v, r, s); return tryRecover(hash, v, r, s);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment