One more line of comment
This commit is contained in:
parent
335dc9e687
commit
272b135b74
|
@ -5,6 +5,7 @@ import (
|
||||||
"strconv"
|
"strconv"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
// Electrum word list
|
||||||
var words []string = []string{
|
var words []string = []string{
|
||||||
"like",
|
"like",
|
||||||
"just",
|
"just",
|
||||||
|
@ -1673,6 +1674,7 @@ func MnemonicDecode(wordsar []string) string {
|
||||||
z := (w3 - w2) % n
|
z := (w3 - w2) % n
|
||||||
|
|
||||||
// Golang handles modulo with negative numbers different then most languages
|
// Golang handles modulo with negative numbers different then most languages
|
||||||
|
// The modulo can be negative, we don't want that.
|
||||||
if z < 0 {
|
if z < 0 {
|
||||||
z += n
|
z += n
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue