Skip to content
This repository has been archived by the owner on Apr 20, 2021. It is now read-only.

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
mathetake committed Nov 22, 2018
1 parent 7450af4 commit 0ec9fb7
Show file tree
Hide file tree
Showing 4 changed files with 4,217 additions and 4,380 deletions.
1 change: 0 additions & 1 deletion src/merkle_tree.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
from eth_hash.auto import keccak
keccak = lambda x: keccak(x)

def permute4(values):
o = []
Expand Down
4 changes: 3 additions & 1 deletion src/mimc_stark.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
from src.merkle_tree import merkelize, mk_branch, verify_branch, keccak
from src.merkle_tree import merkelize, mk_branch, verify_branch
from src.compression import compress_fri, decompress_fri, compress_branches, decompress_branches, bin_length
from src.poly_utils import PrimeField
import time
from src.fft import fft
from src.fri import prove_low_degree, verify_low_degree_proof
from src.utils import get_power_cycle, get_pseudorandom_indices, is_a_power_of_2

from eth_hash.auto import keccak

modulus = 2**256 - 2**32 * 351 + 1
f = PrimeField(modulus)
nonresidue = 7
Expand Down
2 changes: 1 addition & 1 deletion src/utils.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from src.merkle_tree import keccak
from eth_hash.auto import keccak

# Get the set of powers of R, until but not including when the powers
# loop back to 1
Expand Down
Loading

0 comments on commit 0ec9fb7

Please sign in to comment.