https://github.com/tendermint/tendermint
Raw File
Tip revision: d3a421b136d0b8f6069c5e11d1850011f219c867 authored by tycho garen on 17 September 2021, 19:27:21 UTC
rename NewABCIClient to NewClient
Tip revision: d3a421b
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