OSDN Git Service
(root)
/
bytom
/
vapor.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Hulk did something
[bytom/vapor.git]
/
vendor
/
github.com
/
tendermint
/
go-crypto
/
hash.go
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)
10
return hasher.Sum(nil)
11
}