https://github.com/tendermint/tendermint
Raw File
Tip revision: ea539dcb98345f7af77aaca941004eee8c19cfd4 authored by M. J. Fromberger on 28 September 2021, 14:59:47 UTC
Update changelog for v0.35.0-rc2. (#7011)
Tip revision: ea539dc
hash.go
package crypto

import (
	"crypto/sha256"
)

func Sha256(bytes []byte) []byte {
	hasher := sha256.New()
	hasher.Write(bytes)
	return hasher.Sum(nil)
}
back to top