Zeth - Zerocash on Ethereum
0.8
Reference implementation of the Zeth protocol by Clearmatics
|
Public Member Functions | |
def | __init__ (self, str seed_str=MIMC_MT_SEED) |
![]() | |
int | mimc_round (self, int message, int key, int rc) |
![]() | |
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 | |
![]() | |
seed | |
prime | |
num_rounds | |
MiMC specialized for Fr in BLS12-377, using exponent 17 and 62 rounds. See zeth specifications (Section 3.2) for details.
def zeth.core.mimc.MiMCBLS12_377.__init__ | ( | self, | |
str | seed_str = MIMC_MT_SEED |
||
) |