Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/chain/Core
/ hashData
Function
hashData
protocol/validation/validation_test.go:550–554 ·
view source on GitHub ↗
(data []byte)
Source
from the content-addressed store, hash-verified
548
}
549
550
func
hashData(data []byte) bc.Hash {
551
var
b32 [32]byte
552
sha3pool.Sum256(b32[:], data)
553
return
bc.NewHash(b32)
554
}
555
556
func
newHash(n byte) *bc.Hash {
557
h := bc.NewHash([32]byte{n})
Callers
1
sample
Function · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected