MCPcopy 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
56func hashData(data []byte) common.Uint256 {
57 t := sha256.Sum256(data)
58 f := sha256.Sum256(t[:])
59 return common.Uint256(f)
60}
61
62func HashMsg(msg ConsensusMsg) (common.Uint256, error) {
63

Callers 2

HashMsgFunction · 0.85
runMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected