code: def get_cot_artifacts(context):
      
      artifacts = {}
      filepaths = filepaths_in_dir(context.config['artifact_dir'])
      hash_alg = context.config['chain_of_trust_hash_algorithm']
      for filepath in sorted(filepaths):
          path = os.path.join(context.config['artifact_dir'], filepath)
          sha = get_hash(path, hash_alg=hash_alg)
          artifacts[filepath] = {hash_alg: sha}
      return artifacts
docs: Generate the artifact relative paths and shas for the chain of trust.
  
      Args:
          context (scriptworker.context.Context): the scriptworker context.
  
      Returns:
          dict: a dictionary of {"path/to/artifact": {"hash_alg": "..."}, ...}