MCPcopy Create free account
hub / github.com/chain/txvm / keyHash

Function keyHash

protocol/txbuilder/txbuilder_test.go:21–25  ·  view source on GitHub ↗

duplicated from core/key/store.go.

(k []byte)

Source from the content-addressed store, hash-verified

19
20// duplicated from core/key/store.go.
21func keyHash(k []byte) []byte {
22 var h [32]byte
23 sha3pool.Sum256(h[:], k)
24 return h[:]
25}
26
27func TestTxBuilder(t *testing.T) {
28 assetID := bc.HashFromBytes([]byte{1})

Callers 2

TestTxBuilderFunction · 0.70
TestResultsFunction · 0.70

Calls 1

Sum256Function · 0.92

Tested by

no test coverage detected