[MAINTENANCE] - Remove usages of `SafeHash`
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 5/5
- 预计耗时
- 一周以上
- 新手友好度
- 30/100
- Issue 类型
- 重构
- 描述清晰度
- 需要澄清
- 活跃度
- 冷清
- 技术栈
- haskell
- 领域
- blockchain, cli
调研方向
在仓库中搜索所有 SafeHash 的使用和不安全创建,然后追踪每个使用位置,以确定其来源是否可以被追踪。首先检查受影响的 Cardano CLI 和 API 接口;完成的标准是各使用位置使用未经验证的 Hash,但在较低层级接口中无法避免转换的情况除外。
由索引模型根据 Issue 内容生成。
描述
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
SafeHashwith the possible exception of just before interfaces with modules down the stack if unavoidable.
- 主要语言
- Haskell
- 星标
- 72
- 派生
- 26
- 平均合并
- 3 天 27 分钟
- 30 天内合并 PR
- 20
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
IntersectMBO/cardano-cli 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 68/100
IntersectMBO/cardano-cli#1306 · 2 条评论 ·
维护者通常 1 天内回复
-
Show genesis hash mismatches in plain words可能已有人在做 @palas 于 4 天前认领。 未关闭
IntersectMBO/cardano-cli#1481 · 已指派 1 人 ·
维护者通常 1 天内回复
-
难度 4/5 3-5 天 新手友好度 52/100
IntersectMBO/cardano-cli#1479 ·
维护者通常 1 天内回复
-
难度 4/5 3-5 天 新手友好度 56/100
IntersectMBO/cardano-cli#1472 ·
维护者通常 1 天内回复
-
Clarify the origin and intended use of Plutus V2/V4 test fixtures可能已有人在做 @Jimbo4350 于 13 天前认领。 未关闭
IntersectMBO/cardano-cli#1464 · 已指派 1 人 ·
维护者通常 1 天内回复
查看 IntersectMBO/cardano-cli 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 64/100
维护者通常 1 天内回复
-
难度 1/5 1 小时以内 新手友好度 95/100
objectionary/phino#2137 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 65/100
fmidue/logic-tasks#387 ·
-
enhancement
难度 2/5 1-3 小时 新手友好度 78/100
alunduil/network-arbitrary#218 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 76/100
iand675/hs-opentelemetry#323 ·