10 lines
195 B
JavaScript
10 lines
195 B
JavaScript
|
import blockies from 'blockies';
|
||
|
|
||
|
export function createIdentityImg (address, scale = 8) {
|
||
|
return blockies({
|
||
|
seed: (address || '').toLowerCase(),
|
||
|
size: 8,
|
||
|
scale
|
||
|
}).toDataURL();
|
||
|
}
|