aboutsummaryrefslogtreecommitdiffstats
path: root/core/vm/contracts.go
diff options
context:
space:
mode:
authorGustav Simonsson <gustav.simonsson@gmail.com>2015-06-09 22:03:05 +0800
committerGustav Simonsson <gustav.simonsson@gmail.com>2015-06-09 22:03:05 +0800
commit6e3b58e491c822cc6e4aa822c31c6dee034e3df9 (patch)
treecb44599027bb07b74461921af1849fc2611fee32 /core/vm/contracts.go
parent15166f880bb96c6abb2b9952a2997c0c70ccdc14 (diff)
downloadgo-tangerine-6e3b58e491c822cc6e4aa822c31c6dee034e3df9.tar
go-tangerine-6e3b58e491c822cc6e4aa822c31c6dee034e3df9.tar.gz
go-tangerine-6e3b58e491c822cc6e4aa822c31c6dee034e3df9.tar.bz2
go-tangerine-6e3b58e491c822cc6e4aa822c31c6dee034e3df9.tar.lz
go-tangerine-6e3b58e491c822cc6e4aa822c31c6dee034e3df9.tar.xz
go-tangerine-6e3b58e491c822cc6e4aa822c31c6dee034e3df9.tar.zst
go-tangerine-6e3b58e491c822cc6e4aa822c31c6dee034e3df9.zip
Remove unneeded if check on EC recover padding
Diffstat (limited to 'core/vm/contracts.go')
-rw-r--r--core/vm/contracts.go4
1 files changed, 1 insertions, 3 deletions
diff --git a/core/vm/contracts.go b/core/vm/contracts.go
index b5cb9ccd2..90e356b1d 100644
--- a/core/vm/contracts.go
+++ b/core/vm/contracts.go
@@ -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)