aboutsummaryrefslogtreecommitdiffstats
path: root/ethutil
diff options
context:
space:
mode:
authorMaran <maran.hidskes@gmail.com>2014-04-09 22:40:55 +0800
committerMaran <maran.hidskes@gmail.com>2014-04-09 22:40:55 +0800
commit272b135b74931fd159d4e50a2328ea32a73f787c (patch)
tree38b88269750f1db0a5f91ab04671cd9479e18c48 /ethutil
parent335dc9e6874160bb1c1059d676e8842523a732e0 (diff)
downloadgo-tangerine-272b135b74931fd159d4e50a2328ea32a73f787c.tar.gz
go-tangerine-272b135b74931fd159d4e50a2328ea32a73f787c.tar.zst
go-tangerine-272b135b74931fd159d4e50a2328ea32a73f787c.zip
One more line of comment
Diffstat (limited to 'ethutil')
-rw-r--r--ethutil/mnemonic.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/ethutil/mnemonic.go b/ethutil/mnemonic.go
index d21c20f00..cc58de84a 100644
--- a/ethutil/mnemonic.go
+++ b/ethutil/mnemonic.go
@@ -5,6 +5,7 @@ import (
"strconv"
)
+// Electrum word list
var words []string = []string{
"like",
"just",
@@ -1673,6 +1674,7 @@ func MnemonicDecode(wordsar []string) string {
z := (w3 - w2) % n
// Golang handles modulo with negative numbers different then most languages
+ // The modulo can be negative, we don't want that.
if z < 0 {
z += n
}