MCPcopy Create free account
hub / github.com/CPChain/chain / rlpHash

Function rlpHash

tests/state_test_util.go:240–245  ·  view source on GitHub ↗
(x interface{})

Source from the content-addressed store, hash-verified

238}
239
240func rlpHash(x interface{}) (h common.Hash) {
241 hw := sha3.NewKeccak256()
242 rlp.Encode(hw, x)
243 hw.Sum(h[:0])
244 return h
245}

Callers 2

RunMethod · 0.70
RunMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected