diff --git a/builds/node/node_darwin-amd64 b/builds/node/node_darwin-amd64 index 7286437..ba3bff7 100755 Binary files a/builds/node/node_darwin-amd64 and b/builds/node/node_darwin-amd64 differ diff --git a/builds/node/node_darwin-arm64 b/builds/node/node_darwin-arm64 index 027f445..46a91df 100755 Binary files a/builds/node/node_darwin-arm64 and b/builds/node/node_darwin-arm64 differ diff --git a/builds/node/node_linux-386 b/builds/node/node_linux-386 index 0ff8b39..3caa65d 100755 Binary files a/builds/node/node_linux-386 and b/builds/node/node_linux-386 differ diff --git a/builds/node/node_linux-amd64 b/builds/node/node_linux-amd64 index bdc0c71..c3faf12 100755 Binary files a/builds/node/node_linux-amd64 and b/builds/node/node_linux-amd64 differ diff --git a/builds/node/node_linux-arm b/builds/node/node_linux-arm index f021080..b3199d6 100755 Binary files a/builds/node/node_linux-arm and b/builds/node/node_linux-arm differ diff --git a/builds/node/node_linux-arm64 b/builds/node/node_linux-arm64 index bab081a..8781f46 100755 Binary files a/builds/node/node_linux-arm64 and b/builds/node/node_linux-arm64 differ diff --git a/builds/node/node_windows-386 b/builds/node/node_windows-386 index 352a5b5..17f5f03 100755 Binary files a/builds/node/node_windows-386 and b/builds/node/node_windows-386 differ diff --git a/builds/node/node_windows-amd64 b/builds/node/node_windows-amd64 index 3db2462..71f4524 100755 Binary files a/builds/node/node_windows-amd64 and b/builds/node/node_windows-amd64 differ diff --git a/builds/node/node_windows-arm b/builds/node/node_windows-arm index 9537004..12b9c86 100755 Binary files a/builds/node/node_windows-arm and b/builds/node/node_windows-arm differ diff --git a/builds/node/node_windows-arm64 b/builds/node/node_windows-arm64 index 957410e..ca5f27f 100755 Binary files a/builds/node/node_windows-arm64 and b/builds/node/node_windows-arm64 differ diff --git a/verify.go b/verify.go index c9d0774..6862afb 100644 --- a/verify.go +++ b/verify.go @@ -22,7 +22,7 @@ func VerifyTransaction(senderKey dsa.PublicKey, recipientKey dsa.PublicKey, amou if err != nil { panic(err) } - hash := sha256.Sum256([]byte(fmt.Sprintf("%s:%s:%f", senderKey.Y, recipientKey.Y, amountFloat))) + hash := sha256.Sum256([]byte(fmt.Sprintf("%s:%s:%s", senderKey.Y, recipientKey.Y, amount))) isValid := dsa.Verify(&senderKey, hash[:], &r, &s) if !isValid { return false