Guide icon indicating copy to clipboard operation
Guide copied to clipboard

Add advice for truncating addresses

Open ConorOkus opened this issue 3 years ago • 3 comments

Truncated addresses are still very long. Some advice on different truncation techniques would be helpful.

Perhaps it could be added here - https://bitcoin.design/guide/glossary/address/

ConorOkus avatar Jun 14 '22 21:06 ConorOkus

Could be a small addition to the visual formatting paragraph.

Something to consider with truncation is the address-specific prefix. Taproot addresses, for example, all start with bc1p. So if you want to give the user 4 characters at the beginning and end of the address to quickly validate, you still end up with 12 characters (bc1pmzfrwwndsqmk5yh69yjr5lfgfg4ev8c0tsc06e becomes bc1p mzfr ... c06e). Limits how short things can get. What do you think of that 12 character length, Conor?

I'd also say that it should always be possible to tap a truncated address to see it in-full and bigger. Lots of people have bad eye sight and should not have to struggle with this and potentially end up losing money.

GBKS avatar Jun 16 '22 14:06 GBKS

It seems reasonable, but should be accompanied by clear labels e.g Bitcoin Address/ Lightning Address this label length may also have an impact on address truncation in different languages.

ConorOkus avatar Jun 19 '22 14:06 ConorOkus

Depends on what layout you choose. If you stack label and address vertically, you're fine.

image

Beyond languages, this is also a consideration for accessibility. People who choose to use bold text or increase text size on their devices also may run into this issue (as well as those pesky iPhone SE users with their super narrow screens). Basically, layouts need to be really flexible.

GBKS avatar Jun 21 '22 16:06 GBKS

Duplicate of the #907 We do have it here https://bitcoin.design/guide/glossary/address/#visual-formatting If you'd like to have some more content around it let us know where and we can revisit and reopend this issue.

pavlenex avatar Nov 22 '22 11:11 pavlenex