code: func assertEncodedChunkState(version Version, encodedChunk []byte, encodingOverhead int, blockIndex uint64, isFinal bool) {
  	if len(encodedChunk) < encodingOverhead {
  		panic("encodedChunk is too small")
  	}
  
  	err := checkChunkState(version, len(encodedChunk)-encodingOverhead, blockIndex, isFinal)
  	if err != nil {
  		panic(err)
  	}
  }
docs: // assertEncodedChunkState sanity-checks some encoded chunk parameters.