An aggregated transaction, returned by the aggregator server.
Definition at line 10 of file aggregated_transaction.py.
◆ __init__()
| def zecale.core.aggregated_transaction.AggregatedTransaction.__init__ |
( |
|
self, |
|
|
str |
app_name, |
|
|
ExtendedProof |
ext_proof, |
|
|
List[bytes] |
nested_parameters |
|
) |
| |
Definition at line 14 of file aggregated_transaction.py.
17 ext_proof: ExtendedProof,
18 nested_parameters: List[bytes]):
19 self.app_name = app_name
20 self.ext_proof = ext_proof
21 self.nested_parameters = nested_parameters
◆ from_json_dict()
| AggregatedTransaction zecale.core.aggregated_transaction.AggregatedTransaction.from_json_dict |
( |
IZKSnarkProvider |
zksnark, |
|
|
Dict[str, Any] |
json_dict |
|
) |
| |
|
static |
Definition at line 24 of file aggregated_transaction.py.
25 zksnark: IZKSnarkProvider,
26 json_dict: Dict[str, Any]) -> AggregatedTransaction:
27 app_name = json_dict[
"app_name"]
28 ext_proof = ExtendedProof.from_json_dict(zksnark, json_dict[
"ext_proof"])
30 [bytes.fromhex(x)
for x
in json_dict[
"nested_parameters"]]
31 return AggregatedTransaction(app_name, ext_proof, nested_parameters)
◆ to_json_dict()
| Dict[str, Any] zecale.core.aggregated_transaction.AggregatedTransaction.to_json_dict |
( |
|
self | ) |
|
Definition at line 33 of file aggregated_transaction.py.
33 def to_json_dict(self) -> Dict[str, Any]:
35 "app_name": self.app_name,
36 "ext_proof": self.ext_proof.to_json_dict(),
37 "nested_parameters": [x.hex()
for x
in self.nested_parameters],
◆ app_name
| zecale.core.aggregated_transaction.AggregatedTransaction.app_name |
◆ ext_proof
| zecale.core.aggregated_transaction.AggregatedTransaction.ext_proof |
◆ nested_parameters
| zecale.core.aggregated_transaction.AggregatedTransaction.nested_parameters |
The documentation for this class was generated from the following file: