Definition at line 155 of file zksnark.py.
◆ __init__()
◆ from_json_dict()
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"]])
◆ 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]:
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],
◆ abc
zeth.core.zksnark.Groth16.VerificationKey.abc |
◆ alpha
zeth.core.zksnark.Groth16.VerificationKey.alpha |
◆ beta
zeth.core.zksnark.Groth16.VerificationKey.beta |
◆ delta
zeth.core.zksnark.Groth16.VerificationKey.delta |
The documentation for this class was generated from the following file:
- /home/runner/work/zeth/zeth/client/zeth/core/zksnark.py