|
Zecale - Reconciling Privacy and Scalability on Smart-Contract Chains
0.5
Reference implementation of the Zecale protocol by Clearmatics
|
Public Member Functions | |
| def | __init__ (self, str aggregator_server=AGGREGATOR_SERVER_ENDPOINT_DEFAULT, str aggregator_config_file=AGGREGATOR_CONFIG_FILE_DEFAULT, str instance_file=INSTANCE_FILE_DEFAULT, Optional[str] eth_network=None, Optional[str] eth_addr=None, Optional[str] eth_private_key=None) |
| Tuple[str, Optional[bytes]] | get_eth_key_and_address (self) |
| Any | get_web3 (self) |
| AggregatorClient | get_aggregator_client (self) |
| AggregatorConfiguration | get_aggregator_configuration (self) |
| IZKSnarkProvider | get_nested_snark (self) |
| IZKSnarkProvider | get_wrapper_snark (self) |
| Any | get_dispatcher_contract (self) |
Public Attributes | |
| aggregator_server | |
| aggregator_config_file | |
| instance_file | |
| eth_network | |
| eth_addr | |
| eth_private_key | |
Carries command-independent parameters from top-level command to sub-commands. Performs some basic operations common to commands, based on the current context and configuration.
Definition at line 22 of file command_context.py.
| def zecale.cli.command_context.CommandContext.__init__ | ( | self, | |
| str | aggregator_server = AGGREGATOR_SERVER_ENDPOINT_DEFAULT, |
||
| str | aggregator_config_file = AGGREGATOR_CONFIG_FILE_DEFAULT, |
||
| str | instance_file = INSTANCE_FILE_DEFAULT, |
||
| Optional[str] | eth_network = None, |
||
| Optional[str] | eth_addr = None, |
||
| Optional[str] | eth_private_key = None |
||
| ) |
Definition at line 29 of file command_context.py.
| AggregatorClient zecale.cli.command_context.CommandContext.get_aggregator_client | ( | self | ) |
Return an aggregator client for the appropriate endpoint. Created and cached when this function is first called.
Definition at line 62 of file command_context.py.

| AggregatorConfiguration zecale.cli.command_context.CommandContext.get_aggregator_configuration | ( | self | ) |
Load the AggregatorConfiguration from a file, or request it from the aggregator server.
Definition at line 71 of file command_context.py.


| Any zecale.cli.command_context.CommandContext.get_dispatcher_contract | ( | self | ) |
Load (and cache) the dispatcher contract instance.
Definition at line 104 of file command_context.py.

| Tuple[str, Optional[bytes]] zecale.cli.command_context.CommandContext.get_eth_key_and_address | ( | self | ) |
Definition at line 49 of file command_context.py.
| IZKSnarkProvider zecale.cli.command_context.CommandContext.get_nested_snark | ( | self | ) |
| Any zecale.cli.command_context.CommandContext.get_web3 | ( | self | ) |
Create and cache web3 connection.
Definition at line 54 of file command_context.py.

| IZKSnarkProvider zecale.cli.command_context.CommandContext.get_wrapper_snark | ( | self | ) |
Definition at line 101 of file command_context.py.


| zecale.cli.command_context.CommandContext.aggregator_config_file |
Definition at line 32 of file command_context.py.
| zecale.cli.command_context.CommandContext.aggregator_server |
Definition at line 31 of file command_context.py.
| zecale.cli.command_context.CommandContext.eth_addr |
Definition at line 35 of file command_context.py.
| zecale.cli.command_context.CommandContext.eth_network |
Definition at line 34 of file command_context.py.
| zecale.cli.command_context.CommandContext.eth_private_key |
Definition at line 36 of file command_context.py.
| zecale.cli.command_context.CommandContext.instance_file |
Definition at line 33 of file command_context.py.
1.8.17