mirror of
https://github.com/tendermint/tendermint.git
synced 2026-01-07 13:55:17 +00:00
12 lines
185 B
Go
12 lines
185 B
Go
package crypto
|
|
|
|
import (
|
|
"crypto/sha256"
|
|
)
|
|
|
|
func Sha256(bytes []byte) []byte {
|
|
hasher := sha256.New()
|
|
hasher.Write(bytes) //nolint:errcheck // ignore error
|
|
return hasher.Sum(nil)
|
|
}
|