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

Public Member Functions

def __init__ (self, str seed_str=MIMC_MT_SEED)
 
- Public Member Functions inherited from zeth.core.mimc.MiMC17Base
int mimc_round (self, int message, int key, int rc)
 
- Public Member Functions inherited from zeth.core.mimc.MiMCBase
def __init__ (self, str seed_str, int prime, int num_rounds)
 
int encrypt (self, int message, int ek)
 
bytes hash (self, bytes left, bytes right)
 
int hash_int (self, int x, int y)
 

Additional Inherited Members

- Public Attributes inherited from zeth.core.mimc.MiMCBase
 seed
 
 prime
 
 num_rounds
 

Detailed Description

MiMC specialized for Fr in BLS12-377, using exponent 17 and 62 rounds. See
zeth specifications (Section 3.2) for details.

Definition at line 109 of file mimc.py.

Constructor & Destructor Documentation

◆ __init__()

def zeth.core.mimc.MiMCBLS12_377.__init__ (   self,
str   seed_str = MIMC_MT_SEED 
)

Definition at line 114 of file mimc.py.

114  def __init__(self, seed_str: str = MIMC_MT_SEED):
115  super().__init__(
116  seed_str,
117  8444461749428370424248824938781546531375899335154063827935233455917409239041, # noqa
118  62)
119 
120 

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