diff --git a/wallet.go b/wallet.go index 31a22583..262a3665 100644 --- a/wallet.go +++ b/wallet.go @@ -72,7 +72,7 @@ func checksum(payload []byte) []byte { firstSHA := sha256.Sum256(payload) secondSHA := sha256.Sum256(firstSHA[:]) - return secondSHA[:addressChecksumLen] + return secondSHA[len(secondSHA)-addressChecksumLen:] } func newKeyPair() (ecdsa.PrivateKey, []byte) {