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

Functions

IVerificationKey load_verification_key (IZKSnarkProvider zksnark, str vk_file)
 
NestedTransaction load_nested_transaction (IZKSnarkProvider zksnark, str tx_file)
 
AggregatedTransaction load_aggregated_transaction (IZKSnarkProvider zksnark, str agg_tx_file)
 

Function Documentation

◆ load_aggregated_transaction()

AggregatedTransaction zecale.cli.utils.load_aggregated_transaction ( IZKSnarkProvider  zksnark,
str  agg_tx_file 
)
Load an aggregated transaction from a file

Definition at line 29 of file utils.py.

30  zksnark: IZKSnarkProvider, agg_tx_file: str) -> AggregatedTransaction:
31  """
32  Load an aggregated transaction from a file
33  """
34  with open(agg_tx_file, "r") as tx_f:
35  return AggregatedTransaction.from_json_dict(zksnark, json.load(tx_f))
Here is the caller graph for this function:

◆ load_nested_transaction()

NestedTransaction zecale.cli.utils.load_nested_transaction ( IZKSnarkProvider  zksnark,
str  tx_file 
)
Load a single transaction for some application.

Definition at line 20 of file utils.py.

21  zksnark: IZKSnarkProvider, tx_file: str) -> NestedTransaction:
22  """
23  Load a single transaction for some application.
24  """
25  with open(tx_file, "r") as tx_f:
26  return NestedTransaction.from_json_dict(zksnark, json.load(tx_f))
27 
28 
Here is the caller graph for this function:

◆ load_verification_key()

IVerificationKey zecale.cli.utils.load_verification_key ( IZKSnarkProvider  zksnark,
str  vk_file 
)
Load a JSON verification key from a file.

Definition at line 11 of file utils.py.

12  zksnark: IZKSnarkProvider, vk_file: str) -> IVerificationKey:
13  """
14  Load a JSON verification key from a file.
15  """
16  with open(vk_file, "r") as vk_f:
17  return zksnark.verification_key_from_json_dict(json.load(vk_f))
18 
19 
Here is the caller graph for this function:
zecale.cli.utils.load_aggregated_transaction
AggregatedTransaction load_aggregated_transaction(IZKSnarkProvider zksnark, str agg_tx_file)
Definition: utils.py:29
zecale.cli.utils.load_nested_transaction
NestedTransaction load_nested_transaction(IZKSnarkProvider zksnark, str tx_file)
Definition: utils.py:20
zecale.cli.utils.load_verification_key
IVerificationKey load_verification_key(IZKSnarkProvider zksnark, str vk_file)
Definition: utils.py:11