Better display implementations for `NoteTag`
- Ngôn ngữ chính
- Rust
- Star
- 78
- Fork
- 129
- Merge trung bình
- 4 ngày 14 giờ
- Pull request đã merge (30 ngày)
- 52
Mô tả
(This issue might be better suited for `miden-base`)
On the CLI occasionally we have to display note tags, and we don't take any special approach other than just displaying the number. Tags are quite arbitrary so this is not incorrect, but there are better things we could do. For example, for note tags that represent account prefixes, I wonder if we could show them as the first few account ID numbers as hexadecimal (so as to easily compare to a hex representation of `AccountId`).
Because we have some information about the tag (whether it was user-added, or if it's related to an account, etc.), we could fairly easily improve this. But also, tags have an associated meaning (not enforced), so maybe this can be tackled at the `NoteTag` level instead of the `NoteTagRecord` one.
Hướng dẫn đóng góp
Đánh giá
Issue này chưa được đánh giá.