Commit 56806bb2 by Nicolás Venturo Committed by Leo Arias

Now using hex for asm memory addresses. (#1429)


(cherry picked from commit 2733cb4a)
parent 1cf96ef0
...@@ -33,9 +33,9 @@ library ECDSA { ...@@ -33,9 +33,9 @@ library ECDSA {
// currently is to use assembly. // currently is to use assembly.
// solium-disable-next-line security/no-inline-assembly // solium-disable-next-line security/no-inline-assembly
assembly { assembly {
r := mload(add(signature, 32)) r := mload(add(signature, 0x20))
s := mload(add(signature, 64)) s := mload(add(signature, 0x40))
v := byte(0, mload(add(signature, 96))) v := byte(0, mload(add(signature, 0x60)))
} }
// Version of signature should be 27 or 28, but 0 and 1 are also possible versions // Version of signature should be 27 or 28, but 0 and 1 are also possible versions
......
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