Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

[MAINTENANCE] - Remove usages of `SafeHash`

已关闭
#952 8 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
5/5
预计耗时
一周以上
新手友好度
30/100
Issue 类型
重构
描述清晰度
需要澄清
活跃度
冷清
技术栈
haskell
领域
blockchain, cli

调研方向

在仓库中搜索所有 SafeHash 的使用和不安全创建,然后追踪每个使用位置,以确定其来源是否可以被追踪。首先检查受影响的 Cardano CLI 和 API 接口;完成的标准是各使用位置使用未经验证的 Hash,但在较低层级接口中无法避免转换的情况除外。

由索引模型根据 Issue 内容生成。

描述

refactor Stale

What

Replace all usages of SafeHash with unverified Hash unless in cases where it is possible to track the source of the hash. If somewhere this is unavoidable, wait till the last second before unsafely converting to SafeHash.

Why

SafeHash is meant to encode that the hash has a pre-image, but this is not enforceable most of the time in practice, since both cardano-cli and cardano-api are often provided with the hash only, not with the pre-image.

Acceptance Criteria

  • There are no unsafe creations of SafeHash with the possible exception of just before interfaces with modules down the stack if unavoidable.
主要语言
Haskell
星标
72
派生
26
平均合并
3 天 27 分钟
30 天内合并 PR
20

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

IntersectMBO/cardano-cli 的其他 Issue

查看 IntersectMBO/cardano-cli 的全部 Issue

相似的 Issue

更多 Haskell Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。