Zeth - Zerocash on Ethereum  0.8
Reference implementation of the Zeth protocol by Clearmatics
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
zeth.core.zksnark.ExtendedProof Class Reference

Public Member Functions

def __init__ (self, IProof proof, List[str] inputs)
 
Dict[str, Any] to_json_dict (self)
 

Static Public Member Functions

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

Public Attributes

 proof
 
 inputs
 

Detailed Description

A GenericProof and associated inputs

Definition at line 61 of file zksnark.py.

Constructor & Destructor Documentation

◆ __init__()

def zeth.core.zksnark.ExtendedProof.__init__ (   self,
IProof  proof,
List[str]  inputs 
)

Definition at line 65 of file zksnark.py.

65  def __init__(self, proof: IProof, inputs: List[str]):
66  self.proof = proof
67  self.inputs = inputs
68 

Member Function Documentation

◆ from_json_dict()

ExtendedProof zeth.core.zksnark.ExtendedProof.from_json_dict ( IZKSnarkProvider  zksnark,
Dict[str, Any]  json_dict 
)
static

Definition at line 76 of file zksnark.py.

76  def from_json_dict(
77  zksnark: IZKSnarkProvider,
78  json_dict: Dict[str, Any]) -> ExtendedProof:
79  return ExtendedProof(
80  proof=zksnark.proof_from_json_dict(json_dict["proof"]),
81  inputs=json_dict["inputs"])
82 
83 

◆ to_json_dict()

Dict[str, Any] zeth.core.zksnark.ExtendedProof.to_json_dict (   self)

Definition at line 69 of file zksnark.py.

69  def to_json_dict(self) -> Dict[str, Any]:
70  return {
71  "proof": self.proof.to_json_dict(),
72  "inputs": self.inputs,
73  }
74 

Member Data Documentation

◆ inputs

zeth.core.zksnark.ExtendedProof.inputs

Definition at line 67 of file zksnark.py.

◆ proof

zeth.core.zksnark.ExtendedProof.proof

Definition at line 66 of file zksnark.py.


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