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

Public Member Functions

def __init__ (self, G2Point a, G1Point b, G2Point c, G2Point g, G1Point gb1, G2Point gb2, G2Point z, List[G1Point] ic)
 
Dict[str, Any] to_json_dict (self)
 

Static Public Member Functions

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

Public Attributes

 a
 
 b
 
 c
 
 g
 
 gb1
 
 gb2
 
 z
 
 ic
 

Detailed Description

Definition at line 298 of file zksnark.py.

Constructor & Destructor Documentation

◆ __init__()

def zeth.core.zksnark.PGHR13.VerificationKey.__init__ (   self,
G2Point  a,
G1Point  b,
G2Point  c,
G2Point  g,
G1Point  gb1,
G2Point  gb2,
G2Point  z,
List[G1Point ic 
)

Definition at line 299 of file zksnark.py.

299  def __init__(
300  self,
301  a: G2Point,
302  b: G1Point,
303  c: G2Point,
304  g: G2Point,
305  gb1: G1Point,
306  gb2: G2Point,
307  z: G2Point,
308  ic: List[G1Point]):
309  self.a = a
310  self.b = b
311  self.c = c
312  self.g = g
313  self.gb1 = gb1
314  self.gb2 = gb2
315  self.z = z
316  self.ic = ic
317 

Member Function Documentation

◆ from_json_dict()

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

Reimplemented from zeth.core.zksnark.IVerificationKey.

Definition at line 331 of file zksnark.py.

331  def from_json_dict(json_dict: Dict[str, Any]) -> PGHR13.VerificationKey:
332  return PGHR13.VerificationKey(
333  a=G2Point.from_json_list(json_dict["a"]),
334  b=G1Point.from_json_list(json_dict["b"]),
335  c=G2Point.from_json_list(json_dict["c"]),
336  g=G2Point.from_json_list(json_dict["g"]),
337  gb1=G1Point.from_json_list(json_dict["gb1"]),
338  gb2=G2Point.from_json_list(json_dict["gb2"]),
339  z=G2Point.from_json_list(json_dict["z"]),
340  ic=[G1Point.from_json_list(ic)
341  for ic in json_dict["ic"]])
342 
343  class Proof(IProof):

◆ to_json_dict()

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

Reimplemented from zeth.core.zksnark.IVerificationKey.

Definition at line 318 of file zksnark.py.

318  def to_json_dict(self) -> Dict[str, Any]:
319  return {
320  "a": self.a.to_json_list(),
321  "b": self.b.to_json_list(),
322  "c": self.c.to_json_list(),
323  "g": self.g.to_json_list(),
324  "gb1": self.gb1.to_json_list(),
325  "gb2": self.gb2.to_json_list(),
326  "z": self.z.to_json_list(),
327  "ic": [ic.to_json_list() for ic in self.ic],
328  }
329 

Member Data Documentation

◆ a

zeth.core.zksnark.PGHR13.VerificationKey.a

Definition at line 300 of file zksnark.py.

◆ b

zeth.core.zksnark.PGHR13.VerificationKey.b

Definition at line 301 of file zksnark.py.

◆ c

zeth.core.zksnark.PGHR13.VerificationKey.c

Definition at line 302 of file zksnark.py.

◆ g

zeth.core.zksnark.PGHR13.VerificationKey.g

Definition at line 303 of file zksnark.py.

◆ gb1

zeth.core.zksnark.PGHR13.VerificationKey.gb1

Definition at line 304 of file zksnark.py.

◆ gb2

zeth.core.zksnark.PGHR13.VerificationKey.gb2

Definition at line 305 of file zksnark.py.

◆ ic

zeth.core.zksnark.PGHR13.VerificationKey.ic

Definition at line 307 of file zksnark.py.

◆ z

zeth.core.zksnark.PGHR13.VerificationKey.z

Definition at line 306 of file zksnark.py.


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