Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/DNAProject/DNA
/ hashData
Function
hashData
consensus/vbft/utils.go:56–60 ·
view source on GitHub ↗
(data []byte)
Source
from the content-addressed store, hash-verified
54
}
55
56
func
hashData(data []byte) common.Uint256 {
57
t := sha256.Sum256(data)
58
f := sha256.Sum256(t[:])
59
return
common.Uint256(f)
60
}
61
62
func
HashMsg(msg ConsensusMsg) (common.Uint256, error) {
63
Callers
2
HashMsg
Function · 0.85
run
Method · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected