docs: private static byte[] parseAsHexOrBase58(String data) {
          try {
              return Utils.HEX.decode(data);
          } catch (Exception e) {
              // Didn't decode as hex, try base58.
              try {
                  return Base58.decodeChecked(data);
              } catch (AddressFormatException e1) {
                  return null;
              }
          }
      }