Zeth - Zerocash on Ethereum  0.8
Reference implementation of the Zeth protocol by Clearmatics
Functions | Variables
zeth.cli.zeth_get_verification_key Namespace Reference

Functions

None get_verification_key (Context ctx, Optional[str] vk_out)
 

Variables

 help
 

Function Documentation

◆ get_verification_key()

None zeth.cli.zeth_get_verification_key.get_verification_key ( Context  ctx,
Optional[str]  vk_out 
)
Command help text.

Definition at line 15 of file zeth_get_verification_key.py.

15 def get_verification_key(ctx: Context, vk_out: Optional[str]) -> None:
16  """
17  Command help text.
18  """
19 
20  # Get the VK (proto object)
21  client_ctx = ctx.obj
22  prover_client = create_prover_client(client_ctx)
23  vk = prover_client.get_verification_key()
24  vk_json = vk.to_json_dict()
25 
26  # Write the json to stdout or a file
27  if vk_out:
28  with open(vk_out, "w") as vk_f:
29  json.dump(vk_json, vk_f)
30  else:
31  print(json.dumps(vk_json))
Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ help

zeth.cli.zeth_get_verification_key.help

Definition at line 13 of file zeth_get_verification_key.py.

zeth.cli.utils.create_prover_client
ProverClient create_prover_client(ClientConfig ctx)
Definition: utils.py:373
zeth.cli.zeth_get_verification_key.get_verification_key
None get_verification_key(Context ctx, Optional[str] vk_out)
Definition: zeth_get_verification_key.py:15