MCPcopy Index your code
hub / github.com/CovenantSQL/CovenantSQL / THashH

Function THashH

crypto/hash/hashfuncs.go:89–92  ·  view source on GitHub ↗

THashH calculates sha256(blake2b-512(b)) and returns the resulting bytes as a Hash.

(b []byte)

Source from the content-addressed store, hash-verified

87// THashH calculates sha256(blake2b-512(b)) and returns the resulting bytes as a
88// Hash.
89func THashH(b []byte) Hash {
90 first := blake2b.Sum512(b)
91 return Hash(sha256.Sum256(first[:]))
92}

Callers 15

mergeHashFunction · 0.92
MergeTwoHashFunction · 0.92
buildHashFunction · 0.92
PubKeyHashFunction · 0.92
SetHashMethod · 0.92
VerifyHashMethod · 0.92
chain_test.goFile · 0.92
TestConfFunction · 0.92
FromAccountAndNonceFunction · 0.92

Calls 1

HashTypeAlias · 0.85

Tested by 8

mergeHashFunction · 0.74
TestConfFunction · 0.74
TestBlockFunction · 0.74
TestTHashBFunction · 0.68
TestTHashHFunction · 0.68