mirror of
https://github.com/fluencelabs/tendermint
synced 2025-04-24 22:32:15 +00:00
These functions were not used anywhere within tendermint, or the cosmos-sdk. (The functionality is already duplicated in the cosmos-sdk types package) * common: Delete unused functions within byteslice * remove more unused code from strings.go and int.go * Remove more unused code from int.go * Fix testcase
11 lines
277 B
Go
11 lines
277 B
Go
package common
|
|
|
|
// Fingerprint returns the first 6 bytes of a byte slice.
|
|
// If the slice is less than 6 bytes, the fingerprint
|
|
// contains trailing zeroes.
|
|
func Fingerprint(slice []byte) []byte {
|
|
fingerprint := make([]byte, 6)
|
|
copy(fingerprint, slice)
|
|
return fingerprint
|
|
}
|