Zeth - Zerocash on Ethereum
0.8
Reference implementation of the Zeth protocol by Clearmatics
|
Static Public Member Functions | |
str | get_contract_name (PairingParameters pp) |
List[int] | verification_key_to_contract_parameters (IVerificationKey vk, PairingParameters pp) |
IVerificationKey | verification_key_from_proto (snark_messages_pb2.VerificationKey vk_obj) |
snark_messages_pb2.VerificationKey | verification_key_to_proto (IVerificationKey vk) |
IVerificationKey | verification_key_from_json_dict (Dict[str, Any] json_dict) |
IProof | proof_from_json_dict (Dict[str, Any] json_dict) |
ExtendedProof | extended_proof_from_proto (snark_messages_pb2.ExtendedProof ext_proof_proto) |
snark_messages_pb2.ExtendedProof | extended_proof_to_proto (ExtendedProof ext_proof) |
List[int] | proof_to_contract_parameters (IProof proof, PairingParameters pp) |
Interface to be implemented by specific zk-snark providers. Ideally, the rest of the logic should deal only with this interface and have no understanding of the underlying mechanisms.
Definition at line 84 of file zksnark.py.
|
static |
Reimplemented in zeth.core.zksnark.PGHR13, and zeth.core.zksnark.Groth16.
Definition at line 131 of file zksnark.py.
|
static |
Reimplemented in zeth.core.zksnark.PGHR13, and zeth.core.zksnark.Groth16.
Definition at line 138 of file zksnark.py.
|
static |
Get the verifier and mixer contracts for this SNARK.
Reimplemented in zeth.core.zksnark.PGHR13, and zeth.core.zksnark.Groth16.
Definition at line 93 of file zksnark.py.
|
static |
Reimplemented in zeth.core.zksnark.PGHR13, and zeth.core.zksnark.Groth16.
Definition at line 126 of file zksnark.py.
|
static |
Generate the leading parameters to the mix function for this SNARK, from a GenericProof object.
Reimplemented in zeth.core.zksnark.PGHR13, and zeth.core.zksnark.Groth16.
Definition at line 144 of file zksnark.py.
|
static |
Reimplemented in zeth.core.zksnark.PGHR13, and zeth.core.zksnark.Groth16.
Definition at line 120 of file zksnark.py.
|
static |
Definition at line 108 of file zksnark.py.
|
static |
Reimplemented in zeth.core.zksnark.PGHR13, and zeth.core.zksnark.Groth16.
Definition at line 101 of file zksnark.py.
|
static |
Reimplemented in zeth.core.zksnark.PGHR13, and zeth.core.zksnark.Groth16.
Definition at line 114 of file zksnark.py.