robohash か何か適当なサービスで固定してもいいし、各自が使ってるクライアントによってデフォルトアイコン違うので URL を入力して pubkey のところを変数にしておくと柔軟性はあるかもしれません
https://robohash.org/{pubkey}?set=set4&size=120x120
https://robohash.org/{npub}?set=set4&size=120x120
url.replace('{pubkey}', pubkey).replace('{npub}', nip19.npubEncode(pubkey))