more-speech-86159 on Nostr: ``` #!/bin/bash PREFIX="ab" i=0 while [[ true ]] do ((i++)) PK=$(jq -r .pubkey <<< ...
```
#!/bin/bash
PREFIX="ab"
i=0
while [[ true ]]
do
((i++))
PK=$(jq -r .pubkey <<< "$(nostril --kind 1)")
if [[ $PK =~ ^$PREFIX ]]
then
echo "---"
echo "Vanity pubkey found: $PK"
echo "Private key is the last secret_key above"
echo "Iterations: $i"
break
fi
done
```
Published at
2022-08-29 18:19:08Event JSON
{
"id": "4054e4accb71d44d73dd6b714d834a53fe4ba0007a98e09746b6b79e46711d4e",
"pubkey": "8c24f2bf7df33aea0f05706162176343f34389d95ca5696dba1c2768887f586f",
"created_at": 1661797148,
"kind": 1,
"tags": [
[
"p",
"9a576bd96047d9884a93abb2bb0446092b9a1bc773a452143e7f465e538775f4"
],
[
"p",
"1c6b3be353041dd9e09bb568a4a92344e240b39ef5eb390f5e9e821273f0ae6f"
],
[
"e",
"df5c472cfd0b26e64290e36913dcffd9a616bbeba87893f4f498ee5ad14705a3"
],
[
"e",
"804b0d3ce8a24d80ebfea8b52c5cea4fa9381a3cd7708954312fe6e461fc9e94",
"wss://nostr.rocks"
]
],
"content": "```\n#!/bin/bash\n\nPREFIX=\"ab\"\n\ni=0\nwhile [[ true ]]\ndo\n ((i++))\n PK=$(jq -r .pubkey \u003c\u003c\u003c \"$(nostril --kind 1)\")\n if [[ $PK =~ ^$PREFIX ]]\n then\n echo \"---\"\n echo \"Vanity pubkey found: $PK\"\n echo \"Private key is the last secret_key above\"\n echo \"Iterations: $i\"\n break\n fi\ndone\n```\n",
"sig": "43fa43931ff71823ef8a689a466049f83e21cb7cfc4ee0046b7ab634b531c3a1562e8f0a5aaa1013a7195dd9b59fd8ee800a46ddd8a5aedb01bdce918f3cdfdd"
}