Commit 6e3b58e4 authored by Gustav Simonsson's avatar Gustav Simonsson

Remove unneeded if check on EC recover padding

parent 15166f88
......@@ -67,9 +67,7 @@ func ripemd160Func(in []byte) []byte {
const ecRecoverInputLength = 128
func ecrecoverFunc(in []byte) []byte {
if len(in) < ecRecoverInputLength {
in = common.RightPadBytes(in, 128)
}
in = common.RightPadBytes(in, 128)
// "in" is (hash, v, r, s), each 32 bytes
// but for ecrecover we want (r, s, v)
......
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