warner/wireguard-vanity-address

Formatting numerical output

Opened this issue · 2 comments

A cosmetic suggestion regarding the format of numbers outputted in the estimated stanza: use either commas for better readability or use M or B or T etc. suffixes and some sci notation.

Currently:

% wireguard-vanity-address bunny
searching for 'bunny' in pubkey[0..10], one of every 5592405 keys should match

Looks much nicer as:

searching for 'bunny' in pubkey[0..10], one of every 5,592,405 keys should match

Or as:

searching for 'bunny' in pubkey[0..10], one of every 5.59 M keys should match

good idea.. does anybody have a favorite crate for doing this formatting?

Been a while on this. Did you have any ideas/time?