Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- if [[ $1 == "" ]]; then
- echo "Search for vanity keys - Usage : ./vanity.sh STRING"
- exit 1
- fi
- echo "Finding keys containing : $@"
- flag = true
- while true; do
- output=$(cleos create key --to-console)
- pub=$(cut -d ' ' -f 5 <<< "${output//[$'\r\n']}")
- for i in $@
- do
- if [[ $pub =~ .*$i.* ]]; then
- echo $output
- break 2
- fi
- done
- done
Add Comment
Please, Sign In to add comment