mirror of
https://github.com/fluencelabs/tendermint
synced 2025-04-24 14:22:16 +00:00
12 lines
151 B
Go
12 lines
151 B
Go
package crypto
|
|
|
|
import (
|
|
"crypto/sha256"
|
|
)
|
|
|
|
func Sha256(bytes []byte) []byte {
|
|
hasher := sha256.New()
|
|
hasher.Write(bytes)
|
|
return hasher.Sum(nil)
|
|
}
|