Files
libbase58/tests/encode-b58c-high.sh
Luke Dashjr ccb7b43e9b tests: Check encoding with highest bit set
Detects j dropping below 0 going unchecked.
This bug was originally fixed in 2c6b7916b6, but due to ssize_t being a POSIX extension, we are going to check it manually.
2018-06-03 22:06:15 +00:00

4 lines
141 B
Bash
Executable File

#!/bin/sh
b58=$(echo 'ff5a1fc5dd9e6f03819fca94a2d89669469667f9a0' | xxd -r -p | base58 -c)
test x$b58 = x2mkQLxaN3Y4CwN5E9rdMWNgsXX7VS6UnfeT