Definition at line 298 of file zksnark.py.
◆ __init__()
◆ from_json_dict()
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"]])
◆ 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]:
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],
zeth.core.zksnark.PGHR13.VerificationKey.a |
zeth.core.zksnark.PGHR13.VerificationKey.b |
zeth.core.zksnark.PGHR13.VerificationKey.c |
zeth.core.zksnark.PGHR13.VerificationKey.g |
◆ gb1
zeth.core.zksnark.PGHR13.VerificationKey.gb1 |
◆ gb2
zeth.core.zksnark.PGHR13.VerificationKey.gb2 |
◆ ic
zeth.core.zksnark.PGHR13.VerificationKey.ic |
zeth.core.zksnark.PGHR13.VerificationKey.z |
The documentation for this class was generated from the following file:
- /home/runner/work/zeth/zeth/client/zeth/core/zksnark.py