Skip to content

Commit

Permalink
Parameterizes test_sumcheck_circuit to also test UltraStarknetHonk
Browse files Browse the repository at this point in the history
  • Loading branch information
raugfer committed Jan 7, 2025
1 parent 578dc9b commit e559bea
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions tests/hydra/circuits/test_honk.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import garaga.hints.io as io
from garaga.definitions import G1G2Pair
from garaga.definitions import G1G2Pair, ProofSystem
from garaga.precompiled_circuits.honk import (
CONST_PROOF_SIZE_LOG_N,
G2_POINT_KZG_1,
Expand All @@ -16,10 +16,14 @@
PATH = "hydra/garaga/starknet/honk_contract_generator/examples"


def test_sumcheck_circuit():
@pytest.mark.parametrize(
"system", [ProofSystem.UltraKeccakHonk, ProofSystem.UltraStarknetHonk]
)
def test_sumcheck_circuit(system: ProofSystem):
vk = HonkVk.from_bytes(open(f"{PATH}/vk_ultra_keccak.bin", "rb").read())
proof = HonkProof.from_bytes(open(f"{PATH}/proof_ultra_keccak.bin", "rb").read())
tp = HonkTranscript.from_proof(proof)
flavor = "keccak" if system == ProofSystem.UltraKeccakHonk else "starknet"
proof = HonkProof.from_bytes(open(f"{PATH}/proof_ultra_{flavor}.bin", "rb").read())
tp = HonkTranscript.from_proof(proof, system)

circuit = HonkVerifierCircuits(name="test", log_n=vk.log_circuit_size)

Expand Down

0 comments on commit e559bea

Please sign in to comment.