diff options
author | Dan Finlay <dan@danfinlay.com> | 2016-06-15 06:41:07 +0800 |
---|---|---|
committer | Dan Finlay <dan@danfinlay.com> | 2016-06-15 06:41:07 +0800 |
commit | 7430560f7fd9e9b3e7b8c4a2baaea6377a655734 (patch) | |
tree | c8fe991e03e914b9a3024555f3f2e2cfa7f4b5d0 /app | |
parent | 1fe383f7fb82bf96e1709abb59ec25689e7a5bc7 (diff) | |
download | tangerine-wallet-browser-7430560f7fd9e9b3e7b8c4a2baaea6377a655734.tar tangerine-wallet-browser-7430560f7fd9e9b3e7b8c4a2baaea6377a655734.tar.gz tangerine-wallet-browser-7430560f7fd9e9b3e7b8c4a2baaea6377a655734.tar.bz2 tangerine-wallet-browser-7430560f7fd9e9b3e7b8c4a2baaea6377a655734.tar.lz tangerine-wallet-browser-7430560f7fd9e9b3e7b8c4a2baaea6377a655734.tar.xz tangerine-wallet-browser-7430560f7fd9e9b3e7b8c4a2baaea6377a655734.tar.zst tangerine-wallet-browser-7430560f7fd9e9b3e7b8c4a2baaea6377a655734.zip |
Fix pad with zeroes usage
Diffstat (limited to 'app')
-rw-r--r-- | app/scripts/lib/idStore.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/scripts/lib/idStore.js b/app/scripts/lib/idStore.js index 486c67be6..e9b9e0e06 100644 --- a/app/scripts/lib/idStore.js +++ b/app/scripts/lib/idStore.js @@ -522,8 +522,8 @@ function pad_with_zeroes(number, length){ } function concatSig(v, r, s) { - r = pad_with_zeroes(ethUtil.fromSigned(r)) - s = pad_with_zeroes(ethUtil.fromSigned(s)) + r = pad_with_zeroes(ethUtil.fromSigned(r), 64) + s = pad_with_zeroes(ethUtil.fromSigned(s), 64) v = ethUtil.bufferToInt(v) r = ethUtil.toUnsigned(r).toString('hex') s = ethUtil.toUnsigned(s).toString('hex') |