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:17:28Event JSON
{
"id": "804b0d3ce8a24d80ebfea8b52c5cea4fa9381a3cd7708954312fe6e461fc9e94",
"pubkey": "8c24f2bf7df33aea0f05706162176343f34389d95ca5696dba1c2768887f586f",
"created_at": 1661797048,
"kind": 1,
"tags": [
[
"p",
"1c6b3be353041dd9e09bb568a4a92344e240b39ef5eb390f5e9e821273f0ae6f"
],
[
"p",
"9a576bd96047d9884a93abb2bb0446092b9a1bc773a452143e7f465e538775f4"
],
[
"e",
"df5c472cfd0b26e64290e36913dcffd9a616bbeba87893f4f498ee5ad14705a3"
],
[
"e",
"a0fc8d1979c2bb18b378c94f2918885c610a2a0d595c137f8a1f7ca7585285a8"
]
],
"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": "bf252d6a0ae29164c1332badfa61a046d8d26a39e8dfa35fc595a64eb0a5b196e6ba9aaa9a7c5fff1f6f81149dca5d79efee2e56cb4e12aec3a4de9c22cdbb39"
}