0xMiden / 0xMiden/rust-sdk

Better display implementations for `NoteTag`

Aberta
#1,436 2 comentários 0 reações 0 responsáveis Ver no GitHub
cli
Linguagem predominante
Rust
Estrelas
78
Forks
129
Merge médio
4d 14h
PRs com merge (30d)
52

Descrição

(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.

Guia de contribuição

Abrir o guia de contribuição

Avaliação

Esta issue ainda não foi avaliada.

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.