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.Groth16.Proof Class Reference
Inheritance diagram for zeth.core.zksnark.Groth16.Proof:
Inheritance graph
[legend]
Collaboration diagram for zeth.core.zksnark.Groth16.Proof:
Collaboration graph
[legend]

Public Member Functions

def __init__ (self, G1Point a, G2Point b, G1Point c)
 
Dict[str, Any] to_json_dict (self)
 

Static Public Member Functions

Groth16.Proof from_json_dict (Dict[str, Any] json_dict)
 

Public Attributes

 a
 
 b
 
 c
 

Detailed Description

Definition at line 184 of file zksnark.py.

Constructor & Destructor Documentation

◆ __init__()

def zeth.core.zksnark.Groth16.Proof.__init__ (   self,
G1Point  a,
G2Point  b,
G1Point  c 
)

Definition at line 185 of file zksnark.py.

185  def __init__(
186  self,
187  a: G1Point,
188  b: G2Point,
189  c: G1Point):
190  self.a = a
191  self.b = b
192  self.c = c
193 

Member Function Documentation

◆ from_json_dict()

Groth16.Proof zeth.core.zksnark.Groth16.Proof.from_json_dict ( Dict[str, Any]  json_dict)
static

Reimplemented from zeth.core.zksnark.IProof.

Definition at line 202 of file zksnark.py.

202  def from_json_dict(json_dict: Dict[str, Any]) -> Groth16.Proof:
203  return Groth16.Proof(
204  a=G1Point.from_json_list(json_dict["a"]),
205  b=G2Point.from_json_list(json_dict["b"]),
206  c=G1Point.from_json_list(json_dict["c"]))
207 
208  @staticmethod

◆ to_json_dict()

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

Reimplemented from zeth.core.zksnark.IProof.

Definition at line 194 of file zksnark.py.

194  def to_json_dict(self) -> Dict[str, Any]:
195  return {
196  "a": self.a.to_json_list(),
197  "b": self.b.to_json_list(),
198  "c": self.c.to_json_list(),
199  }
200 

Member Data Documentation

◆ a

zeth.core.zksnark.Groth16.Proof.a

Definition at line 186 of file zksnark.py.

◆ b

zeth.core.zksnark.Groth16.Proof.b

Definition at line 187 of file zksnark.py.

◆ c

zeth.core.zksnark.Groth16.Proof.c

Definition at line 188 of file zksnark.py.


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