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

Public Member Functions

def __init__ (self, G1Point a, G1Point a_p, G2Point b, G1Point b_p, G1Point c, G1Point c_p, G1Point h, G1Point k)
 
Dict[str, Any] to_json_dict (self)
 

Static Public Member Functions

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

Public Attributes

 a
 
 a_p
 
 b
 
 b_p
 
 c
 
 c_p
 
 h
 
 k
 

Detailed Description

Definition at line 343 of file zksnark.py.

Constructor & Destructor Documentation

◆ __init__()

def zeth.core.zksnark.PGHR13.Proof.__init__ (   self,
G1Point  a,
G1Point  a_p,
G2Point  b,
G1Point  b_p,
G1Point  c,
G1Point  c_p,
G1Point  h,
G1Point  k 
)

Definition at line 344 of file zksnark.py.

344  def __init__(
345  self,
346  a: G1Point,
347  a_p: G1Point,
348  b: G2Point,
349  b_p: G1Point,
350  c: G1Point,
351  c_p: G1Point,
352  h: G1Point,
353  k: G1Point):
354  self.a = a
355  self.a_p = a_p
356  self.b = b
357  self.b_p = b_p
358  self.c = c
359  self.c_p = c_p
360  self.h = h
361  self.k = k
362 

Member Function Documentation

◆ from_json_dict()

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

Reimplemented from zeth.core.zksnark.IProof.

Definition at line 376 of file zksnark.py.

376  def from_json_dict(json_dict: Dict[str, Any]) -> PGHR13.Proof:
377  return PGHR13.Proof(
378  a=G1Point.from_json_list(json_dict["a"]),
379  a_p=G1Point.from_json_list(json_dict["a_p"]),
380  b=G2Point.from_json_list(json_dict["b"]),
381  b_p=G1Point.from_json_list(json_dict["b_p"]),
382  c=G1Point.from_json_list(json_dict["c"]),
383  c_p=G1Point.from_json_list(json_dict["c_p"]),
384  h=G1Point.from_json_list(json_dict["h"]),
385  k=G1Point.from_json_list(json_dict["k"]))
386 
387  @staticmethod

◆ to_json_dict()

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

Reimplemented from zeth.core.zksnark.IProof.

Definition at line 363 of file zksnark.py.

363  def to_json_dict(self) -> Dict[str, Any]:
364  return {
365  "a": self.a.to_json_list(),
366  "a_p": self.a_p.to_json_list(),
367  "b": self.b.to_json_list(),
368  "b_p": self.b_p.to_json_list(),
369  "c": self.c.to_json_list(),
370  "c_p": self.c_p.to_json_list(),
371  "h": self.h.to_json_list(),
372  "k": self.k.to_json_list(),
373  }
374 

Member Data Documentation

◆ a

zeth.core.zksnark.PGHR13.Proof.a

Definition at line 345 of file zksnark.py.

◆ a_p

zeth.core.zksnark.PGHR13.Proof.a_p

Definition at line 346 of file zksnark.py.

◆ b

zeth.core.zksnark.PGHR13.Proof.b

Definition at line 347 of file zksnark.py.

◆ b_p

zeth.core.zksnark.PGHR13.Proof.b_p

Definition at line 348 of file zksnark.py.

◆ c

zeth.core.zksnark.PGHR13.Proof.c

Definition at line 349 of file zksnark.py.

◆ c_p

zeth.core.zksnark.PGHR13.Proof.c_p

Definition at line 350 of file zksnark.py.

◆ h

zeth.core.zksnark.PGHR13.Proof.h

Definition at line 351 of file zksnark.py.

◆ k

zeth.core.zksnark.PGHR13.Proof.k

Definition at line 352 of file zksnark.py.


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