Files
tendermint/crypto/hash.go
2021-03-19 10:59:14 +01:00

12 lines
151 B
Go

package crypto
import (
"crypto/sha256"
)
func Sha256(bytes []byte) []byte {
hasher := sha256.New()
hasher.Write(bytes)
return hasher.Sum(nil)
}