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:22:03Event JSON
{
"id": "48cb1e75869a64a4e478fdd472f47a4c3a5ba8afad6bd4d4e3ed7363cf436850",
"pubkey": "8c24f2bf7df33aea0f05706162176343f34389d95ca5696dba1c2768887f586f",
"created_at": 1661797323,
"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": "068850fa00b3ebeb81cec3a52b10b48839b221a52b29c265c347dd6cf920bd43dcdee0a5d60f128132dbf9d26c9c992fac6855f494a4f7f9b374213ac47ba307"
}