matrix-org / matrix-org/python-signedjson
Don't expect monkeypatched nacl.signing.SigningKey instances
未关闭
还没有人认领这个 Issue。
enhancement
- 主要语言
- Python
- 星标
- 13
- 派生
- 10
- PR 合并指标
- 30 天内没有已合并 PR
描述
A nicer way to fix matrix-org/synapse#11714 (imo)
- Define a new type which holds the data
(key: nacl.signing.SigningKey, alg: str, version: str). Either inherit fromnacl.signing.SigningKeyor introduce a new wrapper. - Change functions that take a
signedjson.types.SigningKeyto accept this new data type. - Major version bump.
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
首先定位接受 signedjson.types.SigningKey 的函数,并查看 matrix-org/synapse#11714 了解 monkeypatching 问题。定义提议的密钥数据类型,更新这些函数的边界,并验证主要版本 API 变更是否得到一致的体现。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- python
- 领域
- cryptography, security
- Issue 类型
- 重构
- 难度
- 5/5
- 预计耗时
- 一周以上
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 25/100