We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 5493c71 + cb02438 commit 63506c2Copy full SHA for 63506c2
bitcoin.sh
@@ -92,7 +92,7 @@ newBitcoinKey() {
92
fi
93
elif [[ "$1" =~ ^[0-9]+$ ]]
94
then $FUNCNAME "0x$(dc -e "16o$1p")"
95
- elif [[ "${1^^}" =~ ^0X([0-9A-F]+)$ ]]
+ elif [[ "${1^^}" =~ ^0X([0-9A-F]{1,64})$ ]]
96
then
97
local exponent="${BASH_REMATCH[1]}"
98
local uncompressed_wif="$(hexToAddress "$exponent" 80 64)"
0 commit comments