crypto: adjust Checksum documentation
This commit is contained in:
parent
e87d21d396
commit
6020ca9ae8
1 changed files with 2 additions and 1 deletions
|
@ -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]
|
||||
|
|
Loading…
Reference in a new issue