https://github.com/tendermint/tendermint
Raw File
Tip revision: 750f709b42a0f6a6d57c024b0ac14937e36103b4 authored by William Banfield on 28 September 2021, 20:42:43 UTC
wip
Tip revision: 750f709
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