Zeth - Zerocash on Ethereum  0.8
Reference implementation of the Zeth protocol by Clearmatics
Public Member Functions | List of all members
zeth.core.mimc.MiMCAltBN128 Class Reference
Inheritance diagram for zeth.core.mimc.MiMCAltBN128:
Inheritance graph
[legend]
Collaboration diagram for zeth.core.mimc.MiMCAltBN128:
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 ALT-BN128, using exponent 17 and 65 rounds. See
zeth specifications (Section 3.2) for details.

Definition at line 96 of file mimc.py.

Constructor & Destructor Documentation

◆ __init__()

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

Definition at line 101 of file mimc.py.

101  def __init__(self, seed_str: str = MIMC_MT_SEED):
102  super().__init__(
103  seed_str,
104  21888242871839275222246405745257275088548364400416034343698204186575808495617, # noqa
105  # pylint: disable=line-too-long
106  65)
107 
108 

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