Skip to content

Commit

Permalink
Merge branch 'dev' into eelco/submit-existing-code
Browse files Browse the repository at this point in the history
  • Loading branch information
eelcovdw authored Jun 26, 2024
2 parents cc9ba30 + db6c76d commit d01f803
Show file tree
Hide file tree
Showing 10 changed files with 93 additions and 1,071 deletions.
18 changes: 0 additions & 18 deletions notebooks/api/0.8/05-custom-policy.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -297,14 +297,6 @@
" if kwarg_value.is_err():\n",
" return Err(kwarg_value.err())\n",
" code_inputs[var_name] = kwarg_value.ok()\n",
"\n",
" elif context.node.node_type == NodeType.ENCLAVE:\n",
" dict_object = action_service.get(context=root_context, uid=code_item_id)\n",
" if dict_object.is_err():\n",
" return Err(dict_object.err())\n",
" for value in dict_object.ok().syft_action_data.values():\n",
" code_inputs.update(value)\n",
"\n",
" else:\n",
" raise Exception(\n",
" f\"Invalid Node Type for Code Submission:{context.node.node_type}\"\n",
Expand All @@ -328,11 +320,6 @@
" verify_key=context.node.signing_key.verify_key,\n",
" )\n",
" allowed_inputs = allowed_inputs.get(node_identity, {})\n",
" elif context.node.node_type == NodeType.ENCLAVE:\n",
" base_dict = {}\n",
" for key in allowed_inputs.values():\n",
" base_dict.update(key)\n",
" allowed_inputs = base_dict\n",
" else:\n",
" raise Exception(\n",
" f\"Invalid Node Type for Code Submission:{context.node.node_type}\"\n",
Expand Down Expand Up @@ -403,11 +390,6 @@
" verify_key=context.node.signing_key.verify_key,\n",
" )\n",
" allowed_inputs = allowed_inputs.get(node_identity, {})\n",
" elif context.node.node_type == NodeType.ENCLAVE:\n",
" base_dict = {}\n",
" for key in allowed_inputs.values():\n",
" base_dict.update(key)\n",
" allowed_inputs = base_dict\n",
" else:\n",
" raise Exception(\n",
" f\"Invalid Node Type for Code Submission:{context.node.node_type}\"\n",
Expand Down
Loading

0 comments on commit d01f803

Please sign in to comment.