MCPcopy Create free account
hub / github.com/DeAI-Artist/Linkis / Sum

Function Sum

crypto/tmhash/hash.go:19–22  ·  view source on GitHub ↗

Sum returns the SHA256 of the bz.

(bz []byte)

Source from the content-addressed store, hash-verified

17
18// Sum returns the SHA256 of the bz.
19func Sum(bz []byte) []byte {
20 h := sha256.Sum256(bz)
21 return h[:]
22}
23
24//-------------------------------------------------------------
25

Callers 15

TestSignProposalMethod · 0.92
TestSignVoteMethod · 0.92
HashMethod · 0.92
HashMethod · 0.92
HashMethod · 0.92
TestMaxCommitBytesFunction · 0.92
TestHeaderHashFunction · 0.92
TestMaxHeaderBytesFunction · 0.92

Calls

no outgoing calls

Tested by 15

TestMaxCommitBytesFunction · 0.74
TestHeaderHashFunction · 0.74
TestMaxHeaderBytesFunction · 0.74
TestEvidenceProtoFunction · 0.74
exampleVoteFunction · 0.74
TestHashFunction · 0.74
exampleVoteFunction · 0.74