-snip-
The goal is that it works out-of-the-box in nearly all environments, e.g. MacOS, Rasbperry Pi, Windows XP (with busybox or something similar installed), *BSD, Android:"
Works on Windows 11 with WSL (
Windows Subsystem for Linux) with Ubuntu distro.
Just have to install the dependency:
Test commands from README:
$ sh pubkeybitcoin.sh -f hex FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364140
secp256k1 pubkey:
0379BE667EF9DCBBAC55A06295CE870B07029BFCDB2DCE28D959F2815B16F81798
$ sh pubkeybitcoin.sh -f wif L5oLkpV3aqBjhki6LmvChTCV6odsp4SXM6FfU2Gppt5kFLaHLuZ9
secp256k1 pubkey:
0379BE667EF9DCBBAC55A06295CE870B07029BFCDB2DCE28D959F2815B16F81798
Test for prvKey outside range:
$ sh pubkeybitcoin.sh -f hex FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141
ERROR. The entered value exceeds the limit for secp256k1 private key: FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364140.