Zeth - Zerocash on Ethereum  0.8
Reference implementation of the Zeth protocol by Clearmatics
Static Public Member Functions | List of all members
zeth.core.zksnark.IZKSnarkProvider Class Reference
Inheritance diagram for zeth.core.zksnark.IZKSnarkProvider:
Inheritance graph
[legend]
Collaboration diagram for zeth.core.zksnark.IZKSnarkProvider:
Collaboration graph
[legend]

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)
 

Detailed Description

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.

Member Function Documentation

◆ extended_proof_from_proto()

ExtendedProof zeth.core.zksnark.IZKSnarkProvider.extended_proof_from_proto ( snark_messages_pb2.ExtendedProof   ext_proof_proto)
static

Reimplemented in zeth.core.zksnark.PGHR13, and zeth.core.zksnark.Groth16.

Definition at line 131 of file zksnark.py.

131  def extended_proof_from_proto(
132  ext_proof_proto: snark_messages_pb2.ExtendedProof
133  ) -> ExtendedProof:
134  pass
135 

◆ extended_proof_to_proto()

snark_messages_pb2.ExtendedProof zeth.core.zksnark.IZKSnarkProvider.extended_proof_to_proto ( ExtendedProof  ext_proof)
static

Reimplemented in zeth.core.zksnark.PGHR13, and zeth.core.zksnark.Groth16.

Definition at line 138 of file zksnark.py.

138  def extended_proof_to_proto(
139  ext_proof: ExtendedProof) -> snark_messages_pb2.ExtendedProof:
140  pass
141 

◆ get_contract_name()

str zeth.core.zksnark.IZKSnarkProvider.get_contract_name ( PairingParameters  pp)
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.

93  def get_contract_name(pp: PairingParameters) -> str:
94  """
95  Get the verifier and mixer contracts for this SNARK.
96  """
97  pass
98 

◆ proof_from_json_dict()

IProof zeth.core.zksnark.IZKSnarkProvider.proof_from_json_dict ( Dict[str, Any]  json_dict)
static

Reimplemented in zeth.core.zksnark.PGHR13, and zeth.core.zksnark.Groth16.

Definition at line 126 of file zksnark.py.

126  def proof_from_json_dict(json_dict: Dict[str, Any]) -> IProof:
127  pass
128 

◆ proof_to_contract_parameters()

List[int] zeth.core.zksnark.IZKSnarkProvider.proof_to_contract_parameters ( IProof  proof,
PairingParameters  pp 
)
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.

144  def proof_to_contract_parameters(
145  proof: IProof, pp: PairingParameters) -> List[int]:
146  """
147  Generate the leading parameters to the mix function for this SNARK, from a
148  GenericProof object.
149  """
150  pass
151 
152 

◆ verification_key_from_json_dict()

IVerificationKey zeth.core.zksnark.IZKSnarkProvider.verification_key_from_json_dict ( Dict[str, Any]  json_dict)
static

Reimplemented in zeth.core.zksnark.PGHR13, and zeth.core.zksnark.Groth16.

Definition at line 120 of file zksnark.py.

120  def verification_key_from_json_dict(
121  json_dict: Dict[str, Any]) -> IVerificationKey:
122  pass
123 

◆ verification_key_from_proto()

IVerificationKey zeth.core.zksnark.IZKSnarkProvider.verification_key_from_proto ( snark_messages_pb2.VerificationKey  vk_obj)
static

Definition at line 108 of file zksnark.py.

108  def verification_key_from_proto(
109  vk_obj: snark_messages_pb2.VerificationKey) -> IVerificationKey:
110  pass
111 

◆ verification_key_to_contract_parameters()

List[int] zeth.core.zksnark.IZKSnarkProvider.verification_key_to_contract_parameters ( IVerificationKey  vk,
PairingParameters  pp 
)
static

Reimplemented in zeth.core.zksnark.PGHR13, and zeth.core.zksnark.Groth16.

Definition at line 101 of file zksnark.py.

101  def verification_key_to_contract_parameters(
102  vk: IVerificationKey,
103  pp: PairingParameters) -> List[int]:
104  pass
105 

◆ verification_key_to_proto()

snark_messages_pb2.VerificationKey zeth.core.zksnark.IZKSnarkProvider.verification_key_to_proto ( IVerificationKey  vk)
static

Reimplemented in zeth.core.zksnark.PGHR13, and zeth.core.zksnark.Groth16.

Definition at line 114 of file zksnark.py.

114  def verification_key_to_proto(
115  vk: IVerificationKey) -> snark_messages_pb2.VerificationKey:
116  pass
117 

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