-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore: optimize eth example #243
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
|
@@ -12,11 +12,21 @@ export default { | |||||||||||
}, | ||||||||||||
], | ||||||||||||
signSchnorr: [ | ||||||||||||
{ | ||||||||||||
id: 'signSchnorr-32HexString', | ||||||||||||
name: '32 位 Hex String', | ||||||||||||
value: '2118c65161c7d68b4bdbe1374f658532670057ab1bb0c99937d0ff7cff45cb5e', | ||||||||||||
}, | ||||||||||||
{ | ||||||||||||
id: 'signSchnorr', | ||||||||||||
name: 'signSchnorr', | ||||||||||||
name: 'Hex String', | ||||||||||||
value: '010203', | ||||||||||||
}, | ||||||||||||
// { | ||||||||||||
// id: 'signSchnorr-text', | ||||||||||||
// name: '普通文本', | ||||||||||||
// value: 'some text here', | ||||||||||||
// } | ||||||||||||
Comment on lines
+25
to
+29
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🛠️ Refactor suggestion 建议移除已注释的代码 注释掉的代码段应该直接删除,而不是保留在代码中。如果需要保留这些信息,建议记录在文档中。 - // {
- // id: 'signSchnorr-text',
- // name: '普通文本',
- // value: 'some text here',
- // } 📝 Committable suggestion
Suggested change
|
||||||||||||
], | ||||||||||||
nip04encrypt: [ | ||||||||||||
{ | ||||||||||||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🧹 Nitpick (assertive)
建议优化命名以保持一致性
将 "Hex String" 改为 "十六进制字符串" 会更符合中文使用场景,并与其他命名保持一致。
📝 Committable suggestion