liana
liana copied to clipboard
Display shorted long strings
There are 2 types of long strings displayed in Liana:
- Addresses
- TX IDs
For the normal user, they look weird, and most of the time they just take up screen real estate for nothing.
However, eliminating this information completely is not a good idea. When sending BTC to the wallet, a user should verify the first & last 3 characters of an address. A TX ID is a unique identifier, there are a LOT of reasons why a user might want to check this identifier.
In order to make things occupy less screen real estate, i propose the only the first and last relevant characters are shown.
- TX ID: d461ae4ab28b77383fb0c5ed4a9767f7f9513180242ff2fe9fa9f6f2be057422 -> d461 · · · · 422(middle dot used here)
- Addres: tb1qggjcuyqcdqmsd72h7trxydgmlc6zs43ufswg0thucvuhzs6ss3rqdqh8np -> tb1q-ggj · · · · 8np With addresses the prefix, tb1q, does not really serve to verify anything, so, it should be included, but grayed out a bit.
Bitcoin addresses are recognizable (because of the betch32 encoding), it's very easy to tell apart an address from a hash. This visual distinction should be maintained, but not sure what would be a good visual tehnique.
It goes without saying that when any of these shortened strings are clicked, they should be copied into the clipboard.
This rule should NOT be applied in the "Recieve" tab, and the full address should be visible, however, the first and last characters should be more visible, while the middle ones should be greyed out.
This practice can be seen in
-
blockchair block explorer
-
mempool block explorer