|
@ -54,7 +54,7 @@ void ecrecoverCode(bytesConstRef _in, bytesRef _out) |
|
|
memcpy(&in, _in.data(), min(_in.size(), sizeof(in))); |
|
|
memcpy(&in, _in.data(), min(_in.size(), sizeof(in))); |
|
|
|
|
|
|
|
|
memset(_out.data(), 0, _out.size()); |
|
|
memset(_out.data(), 0, _out.size()); |
|
|
if (in.v > 28) |
|
|
if ((u256)in.v > 28) |
|
|
return; |
|
|
return; |
|
|
SignatureStruct sig{in.r, in.s, (byte)((int)(u256)in.v - 27)}; |
|
|
SignatureStruct sig{in.r, in.s, (byte)((int)(u256)in.v - 27)}; |
|
|
if (!sig.isValid()) |
|
|
if (!sig.isValid()) |
|
|