https://github.com/tendermint/tendermint
Raw File
Tip revision: 1baf670c60c1c97c42523f2c14c6c0768812856c authored by Anton Kaliaev on 10 November 2020, 12:36:46 UTC
use fmt.Sprint for string to int conversion
Tip revision: 1baf670
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