In mist, all accounts have a colourful pixelated "profile picture" used to identify them. For instance, in this screenshot from the Mist releases page, the Dogecoin Bounty DAO is given a purple profile pic. How are these generated?
Asked
Active
Viewed 9,007 times
15
-
1Using https://github.com/ethereum/blockies But with the same hash of a mist wallet but it generates a different identicon, is there anything to be added to the hash or blockies options for them to be the same? – 0Ds0 Feb 09 '18 at 14:06
1 Answers
14
They use a customized version of the blockies library, namely this one: https://github.com/alexvandesande/blockies.
Our port has a few graphical fixes as well as a significant fix to avoid duplicate icons in the original version caused by a bad random number generator. The upstream author doesn't want to accept the good PR since it breaks existing icons for existing users, so for the foreseeable future, we'll use a fork and not the upstream lib.
Péter Szilágyi
- 10,436
- 39
- 42
-
Are they generated local to each copy of Mist, or would the same contract always have the same icon? – Josh Stark Mar 07 '16 at 18:54
-
They are generated based on the address of an account/contract. It will look the same on all machines (as long as they use the same library/algorithm to generate it). – Péter Szilágyi Mar 08 '16 at 08:57
-
1
