https://github.com/tendermint/tendermint
Raw File
Tip revision: 8706d45f3dee78ee97394e577fc3fe53620bbeff authored by Marko Baricevic on 05 August 2020, 09:12:06 UTC
add dates to changelog
Tip revision: 8706d45
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