github.com/supragya/TendermintConnector@v0.0.0-20210619045051-113e32b84fb1/chains/cosmos/crypto/hash.go (about)

     1  package crypto
     2  
     3  import (
     4  	"crypto/sha256"
     5  )
     6  
     7  func Sha256(bytes []byte) []byte {
     8  	hasher := sha256.New()
     9  	hasher.Write(bytes) //nolint:errcheck // ignore error
    10  	return hasher.Sum(nil)
    11  }