Revert "Fix the 'checksum' function"

This reverts commit 465b85d5f2.
This commit is contained in:
Ivan Kuznetsov 2017-09-19 14:53:53 +07:00
parent 8cafc0ef1e
commit 74cbac4e8f
1 changed files with 1 additions and 1 deletions

View File

@ -72,7 +72,7 @@ func checksum(payload []byte) []byte {
firstSHA := sha256.Sum256(payload) firstSHA := sha256.Sum256(payload)
secondSHA := sha256.Sum256(firstSHA[:]) secondSHA := sha256.Sum256(firstSHA[:])
return secondSHA[len(secondSHA)-addressChecksumLen:] return secondSHA[:addressChecksumLen]
} }
func newKeyPair() (ecdsa.PrivateKey, []byte) { func newKeyPair() (ecdsa.PrivateKey, []byte) {