From 6020ca9ae89021ee6248c06e5f646ab0b6cf6845 Mon Sep 17 00:00:00 2001 From: Anna Shaleva Date: Thu, 12 May 2022 15:46:27 +0300 Subject: [PATCH] crypto: adjust Checksum documentation --- pkg/crypto/hash/hash.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkg/crypto/hash/hash.go b/pkg/crypto/hash/hash.go index 9faa8b33d..9df09c66f 100644 --- a/pkg/crypto/hash/hash.go +++ b/pkg/crypto/hash/hash.go @@ -67,7 +67,8 @@ func Hash160(data []byte) util.Uint160 { } // Checksum returns the checksum for a given piece of data -// using sha256 twice as the hash algorithm. +// using DoubleSha256 as the hash algorithm. It returns the +// first 4 bytes of the resulting slice. func Checksum(data []byte) []byte { hash := DoubleSha256(data) return hash[:4]