|
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) |
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 | |
MiMC specialized for Fr in ALT-BN128, using exponent 17 and 65 rounds. See zeth specifications (Section 3.2) for details.
| def zeth.core.mimc.MiMCAltBN128.__init__ | ( | self, | |
| str | seed_str = MIMC_MT_SEED |
||
| ) |
1.8.17