docs for hasher states could use a reference to the `Digest` trait
还没有人认领这个 Issue。
评估
- 难度
- 2/5
- 预计耗时
- 1-3 小时
- 新手友好度
- 45/100
- Issue 类型
- 文档
- 描述清晰度
- 基本清楚
- 活跃度
- 停滞
- 技术栈
- rust
调研方向
首先查看 sha3::Keccak256 等哈希器状态类型的文档,以及使用 Digest::update 的现有示例。添加对 Digest trait 的引用,展示一个使用 Keccak256::digest 的一次性示例,并在增量示例中使用多条消息,以明确两者的区别。当新手能够理解这两种使用模式时,文档就完成了。
由索引模型根据 Issue 内容生成。
描述
For someone new to the ecosystem it might be hard to tell how to use a... For example, sha3::Keccak256 (https://docs.rs/sha3/latest/sha3/type.Keccak256.html), it's just a type alias with no real info about what it is (other than some nebulous "hasher state") or how to use it. I'd recommend linking to the Digest trait in the docs as a way of explaining "how to use it"
Additionally (if I should move this to a separate issue, let me know and I will do so) I would recommend an example specifically showing how to sha3::Keccak256::digest(b"a message") in one go. Finally, the example(s) that use update should add more than one message. This would be so that show new user why you would use new and then update rather than digest ("because you can add more than one thing").
I would be willing to create the examples / documentation if this would be agreeable
- 主要语言
- Rust
- 星标
- 2.3k
- 派生
- 341
- 平均合并
- 12 小时 31 分钟
- 30 天内合并 PR
- 2
贡献指南
这个仓库没有索引到贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
RustCrypto/hashes 的其他 Issue
-
难度 3/5 1-2 天 新手友好度 68/100
RustCrypto/hashes#912 ·
-
难度 4/5 3-5 天 新手友好度 38/100
RustCrypto/hashes#909 · 4 条评论 ·
-
难度 5/5 一周以上 新手友好度 20/100
RustCrypto/hashes#908 ·
-
难度 5/5 一周以上 新手友好度 25/100
RustCrypto/hashes#763 · 1 条评论 ·
-
难度 3/5 1-2 天 新手友好度 35/100
RustCrypto/hashes#747 · 1 条评论 ·
查看 RustCrypto/hashes 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 75/100
TheLarkInn/aipm#2413 ·
-
documentation
难度 1/5 1 小时以内 新手友好度 90/100
alexgorbatchev/simple-ptt#15 ·
-
tooling
难度 2/5 1-3 小时 新手友好度 75/100
-
todo:ticket
难度 2/5 1-3 小时 新手友好度 70/100
-
难度 2/5 1-3 小时 新手友好度 75/100
taikoxyz/taiko-mono#22168 · 1 条评论 ·