Handle line breaks in `charon-enr-private-key`

未关闭 适合新手
#722 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
2/5
预计耗时
1-3 小时
新手友好度
69/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
活跃
技术栈
rust

调研方向

首先找到读取并解析 charon-enr-private-key 文件的代码,然后检查现有的私钥文件处理测试。接受换行符和回车符,并改进将无效密钥误判为锁文件中缺少该密钥的错误。完成标准是:使用这些换行符保存的密钥能够被接受,且真实的密钥错误能够得到准确报告。

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

描述

Description

I used nano to create the file, pasted the private key, saved and quit. Pluto errored saying this enr was not found in the lock file. That took me a while to debug. Turns out it was the right key, but by default nano saves a \r or something, and you need to start with nano -L to have it not do that.

Acceptance criteria

Be tolerate on line feed and carriage return symbols in a pkey file, consider better errors if there are issues, ideally not misdiagnosing the issue

Documentation link(s)
主要语言
Rust
星标
8
派生
5
PR 合并指标
30 天内没有已合并 PR

环境准备

从这里开始

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

NethermindEth/pluto 的其他 Issue

查看 NethermindEth/pluto 的全部 Issue

相似的 Issue

更多 Rust Issue

把新 issue 发到你的邮箱

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