Consider an inline representation for small multiaddrs
还没有人认领这个 Issue。
评估
- 难度
- 5/5
- 预计耗时
- 一周以上
- 新手友好度
- 25/100
- Issue 类型
- 功能
- 描述清晰度
- 需要澄清
- 活跃度
- 停滞
- 技术栈
- rust
- 领域
- networking
调研方向
首先审查链接的 rust-multihash pull request 和当前的 rust-multiaddr 实现。定义 64 字节的 inline 表示将如何存储示例中的 IPv4 和 IPv6 multiaddrs,然后验证该优化能够保留所述的 multiaddr 数据并支持重复的 peer IDs。
由索引模型根据 Issue 内容生成。
描述
Similar to https://github.com/multiformats/rust-multihash/pull/47
Using the same approach, for a total size of 64 bytes, you get 62 bytes of data. That is enough to store a multiaddr like /ip4/<32 bit addr>/tcp/<port>/ipfs/<256 bit node hash> or even /ip6/<128 bit addr>/tcp/<port>/ipfs/<256 bit node hash> inline, which should be quite useful.
Rust-libp2p nodes frequently store peer ids multiple times, so this would be a nice optimisation.
- 主要语言
- Rust
- 星标
- 101
- 派生
- 56
- 平均合并
- 23 分钟
- 30 天内合并 PR
- 2
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
multiformats/rust-multiaddr 的其他 Issue
-
难度 5/5 一周以上 新手友好度 25/100
multiformats/rust-multiaddr#134 · 1 条评论 ·
-
difficulty:easy help wanted
难度 2/5 1-3 小时 新手友好度 47/100
multiformats/rust-multiaddr#100 ·
-
难度 2/5 1-3 小时 新手友好度 45/100
-
难度 4/5 3-5 天 新手友好度 35/100
-
难度 4/5 3-5 天 新手友好度 25/100
multiformats/rust-multiaddr#90 · 2 条评论 ·
查看 multiformats/rust-multiaddr 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 66/100
git-ai-project/git-ai#2434 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 84/100
peteonrails/voxtype#909 ·
维护者通常 2 天内回复
-
难度 2/5 1-3 小时 新手友好度 82/100
kucherenko/jscpd#1239 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 76/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 69/100
alchemyplatform/rundler#1358 ·
维护者通常 3 天内回复