tendermint/crypto/hash.go

12 lines
151 B
Go
Raw Normal View History

2018-06-20 15:30:44 -07:00
package crypto
import (
"crypto/sha256"
)
func Sha256(bytes []byte) []byte {
hasher := sha256.New()
hasher.Write(bytes)
return hasher.Sum(nil)
}