MCPcopy Create free account
hub / github.com/ethstorage/es-node / CalcEncodeKey

Function CalcEncodeKey

ethstorage/data_shard.go:228–230  ·  view source on GitHub ↗
(commit common.Hash, chunkIdx uint64, miner common.Address)

Source from the content-addressed store, hash-verified

226}
227
228func CalcEncodeKey(commit common.Hash, chunkIdx uint64, miner common.Address) common.Hash {
229 return calcEncodeKey(commit, chunkIdx, miner)
230}
231
232// Obtain a unique encoding key with keccak256(chunkIdx || commit || miner).
233// This will make sure the encoded data will be unique in terms of idx, storage provider, and data

Callers 1

getEncodingParamsMethod · 0.85

Calls 1

calcEncodeKeyFunction · 0.85

Tested by

no test coverage detected