Zecale - Reconciling Privacy and Scalability on Smart-Contract Chains  0.5
Reference implementation of the Zecale protocol by Clearmatics
Functions | Variables
zecale.cli.zecale_get_batch Namespace Reference

Functions

None get_batch (Context ctx, str name, str batch_file)
 

Variables

 required
 
 True
 
 help
 
 default
 

Function Documentation

◆ get_batch()

None zecale.cli.zecale_get_batch.get_batch ( Context  ctx,
str  name,
str  batch_file 
)
Request an aggregated transaction for the given application name.

Definition at line 18 of file zecale_get_batch.py.

18 def get_batch(
19  ctx: Context,
20  name: str,
21  batch_file: str) -> None:
22  """
23  Request an aggregated transaction for the given application name.
24  """
25 
26  cmd_ctx: CommandContext = ctx.obj
27  wrapper_snark = cmd_ctx.get_wrapper_snark()
28  aggregator_client = cmd_ctx.get_aggregator_client()
29  aggregated_tx = aggregator_client.get_aggregated_transaction(
30  wrapper_snark, name)
31  with open(batch_file, "w") as batch_f:
32  json.dump(aggregated_tx.to_json_dict(), batch_f)

Variable Documentation

◆ default

zecale.cli.zecale_get_batch.default

Definition at line 15 of file zecale_get_batch.py.

◆ help

zecale.cli.zecale_get_batch.help

Definition at line 12 of file zecale_get_batch.py.

◆ required

zecale.cli.zecale_get_batch.required

Definition at line 12 of file zecale_get_batch.py.

◆ True

zecale.cli.zecale_get_batch.True

Definition at line 12 of file zecale_get_batch.py.

zecale.cli.zecale_get_batch.get_batch
None get_batch(Context ctx, str name, str batch_file)
Definition: zecale_get_batch.py:18