Zeth - Zerocash on Ethereum  0.8
Reference implementation of the Zeth protocol by Clearmatics
Classes | Functions | Variables
zeth.core.zksnark Namespace Reference

Classes

class  ExtendedProof
 
class  Groth16
 
class  IProof
 
class  IVerificationKey
 
class  IZKSnarkProvider
 
class  PGHR13
 

Functions

IZKSnarkProvider get_zksnark_provider (str zksnark_name)
 

Variables

dictionary PAIRING_NAME_TO_CONTRACT_NAME
 

Function Documentation

◆ get_zksnark_provider()

IZKSnarkProvider zeth.core.zksnark.get_zksnark_provider ( str  zksnark_name)

Definition at line 486 of file zksnark.py.

486 def get_zksnark_provider(zksnark_name: str) -> IZKSnarkProvider:
487  if zksnark_name == constants.PGHR13_ZKSNARK:
488  return PGHR13()
489  if zksnark_name == constants.GROTH16_ZKSNARK:
490  return Groth16()
491  raise Exception(f"unknown zk-SNARK name: {zksnark_name}")
492 
493 
Here is the caller graph for this function:

Variable Documentation

◆ PAIRING_NAME_TO_CONTRACT_NAME

dictionary zeth.core.zksnark.PAIRING_NAME_TO_CONTRACT_NAME
Initial value:
1 = {
2  "alt-bn128": "AltBN128",
3  "bls12-377": "BLS12_377",
4 }

Definition at line 27 of file zksnark.py.

zeth.core.zksnark.get_zksnark_provider
IZKSnarkProvider get_zksnark_provider(str zksnark_name)
Definition: zksnark.py:486