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

Function rlpHash

types/block.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}
246
247// Body is a simple (mutable, non-safe) data container for storing and moving
248// a block's data contents (transactions and uncles) together.

Callers 5

HashMethod · 0.70
HashMethod · 0.70
HashMethod · 0.70
HashMethod · 0.70
HashNoNonceMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected