Add base58-encode/decode and tests.