Zecale - Reconciling Privacy and Scalability on Smart-Contract Chains  0.5
Reference implementation of the Zecale protocol by Clearmatics
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
zecale.core.aggregated_transaction.AggregatedTransaction Class Reference

Public Member Functions

def __init__ (self, str app_name, ExtendedProof ext_proof, List[bytes] nested_parameters)
 
Dict[str, Any] to_json_dict (self)
 

Static Public Member Functions

AggregatedTransaction from_json_dict (IZKSnarkProvider zksnark, Dict[str, Any] json_dict)
 

Public Attributes

 app_name
 
 ext_proof
 
 nested_parameters
 

Detailed Description

An aggregated transaction, returned by the aggregator server.

Definition at line 10 of file aggregated_transaction.py.

Constructor & Destructor Documentation

◆ __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.

14  def __init__(
15  self,
16  app_name: str,
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
22 

Member Function Documentation

◆ 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.

24  def from_json_dict(
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"])
29  nested_parameters = \
30  [bytes.fromhex(x) for x in json_dict["nested_parameters"]]
31  return AggregatedTransaction(app_name, ext_proof, nested_parameters)
32 

◆ 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]:
34  return {
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],
38  }

Member Data Documentation

◆ app_name

zecale.core.aggregated_transaction.AggregatedTransaction.app_name

Definition at line 15 of file aggregated_transaction.py.

◆ ext_proof

zecale.core.aggregated_transaction.AggregatedTransaction.ext_proof

Definition at line 16 of file aggregated_transaction.py.

◆ nested_parameters

zecale.core.aggregated_transaction.AggregatedTransaction.nested_parameters

Definition at line 17 of file aggregated_transaction.py.


The documentation for this class was generated from the following file: