(blob []byte, blobHash common.Hash, kvIdx, size uint64)
| 92 | } |
| 93 | |
| 94 | func (s *StorageManager) DecodeBlob(blob []byte, blobHash common.Hash, kvIdx, size uint64) []byte { |
| 95 | encodeType, encodeKey := s.getEncodingParams(kvIdx, blobHash) |
| 96 | return DecodeChunk(size, blob, encodeType, encodeKey) |
| 97 | } |
| 98 | |
| 99 | func (s *StorageManager) getEncodingParams(kvIdx uint64, blobHash common.Hash) (uint64, common.Hash) { |
| 100 | shardIdx := kvIdx >> s.KvEntriesBits() |