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

Public Member Functions

def __init__ (self, G1Point alpha, G2Point beta, G2Point delta, List[G1Point] abc)
 
Dict[str, Any] to_json_dict (self)
 

Static Public Member Functions

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

Public Attributes

 alpha
 
 beta
 
 delta
 
 abc
 

Detailed Description

Definition at line 155 of file zksnark.py.

Constructor & Destructor Documentation

◆ __init__()

def zeth.core.zksnark.Groth16.VerificationKey.__init__ (   self,
G1Point  alpha,
G2Point  beta,
G2Point  delta,
List[G1Point abc 
)

Definition at line 156 of file zksnark.py.

156  def __init__(
157  self,
158  alpha: G1Point,
159  beta: G2Point,
160  delta: G2Point,
161  abc: List[G1Point]):
162  self.alpha = alpha
163  self.beta = beta
164  self.delta = delta
165  self.abc = abc
166 

Member Function Documentation

◆ from_json_dict()

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

Reimplemented from zeth.core.zksnark.IVerificationKey.

Definition at line 176 of file zksnark.py.

176  def from_json_dict(json_dict: Dict[str, Any]) -> Groth16.VerificationKey:
177  return Groth16.VerificationKey(
178  alpha=G1Point.from_json_list(json_dict["alpha"]),
179  beta=G2Point.from_json_list(json_dict["beta"]),
180  delta=G2Point.from_json_list(json_dict["delta"]),
181  abc=[G1Point.from_json_list(abc)
182  for abc in json_dict["ABC"]])
183 
184  class Proof(IProof):

◆ to_json_dict()

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

Reimplemented from zeth.core.zksnark.IVerificationKey.

Definition at line 167 of file zksnark.py.

167  def to_json_dict(self) -> Dict[str, Any]:
168  return {
169  "alpha": self.alpha.to_json_list(),
170  "beta": self.beta.to_json_list(),
171  "delta": self.delta.to_json_list(),
172  "ABC": [abc.to_json_list() for abc in self.abc],
173  }
174 

Member Data Documentation

◆ abc

zeth.core.zksnark.Groth16.VerificationKey.abc

Definition at line 160 of file zksnark.py.

◆ alpha

zeth.core.zksnark.Groth16.VerificationKey.alpha

Definition at line 157 of file zksnark.py.

◆ beta

zeth.core.zksnark.Groth16.VerificationKey.beta

Definition at line 158 of file zksnark.py.

◆ delta

zeth.core.zksnark.Groth16.VerificationKey.delta

Definition at line 159 of file zksnark.py.


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