warner / wireguard-vanity-address

generate Wireguard keypairs with a given prefix string
MIT License
437 stars 32 forks source link

Formatting numerical output #24

Open graysky2 opened 4 years ago

graysky2 commented 4 years ago

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
warner commented 2 years ago

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

graysky2 commented 2 years ago

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