https://github.com/tendermint/tendermint
Raw File
Tip revision: 7296f8a149c2d346a464715b3a226405118e726a authored by Callum Waters on 12 April 2021, 16:26:28 UTC
Merge branch 'master' into callum/evidence-hashes
Tip revision: 7296f8a
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