https://github.com/tendermint/tendermint
Raw File
Tip revision: c50c33e4e9832513cfacbb757cf8a8abc1610ee7 authored by Tess Rinearson on 24 September 2020, 14:48:55 UTC
CHANGELOG: update for 0.34.0-rc4 (#5400)
Tip revision: c50c33e
hash.go
package crypto

import (
	"crypto/sha256"
)

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