Skip to content

Conversation

Maddiaa0
Copy link
Member

@Maddiaa0 Maddiaa0 commented Sep 22, 2024

Complete, without zk

Cuts off a million

next steps:
proof size has a large consequence with this one, due to memory expansion, so having a different proof type for the keccak one which does tighter serialisation will save a good chunk of gas - working on this next

Copy link
Member Author

Maddiaa0 commented Sep 22, 2024

This stack of pull requests is managed by Graphite. Learn more about stacking.

@Maddiaa0 Maddiaa0 changed the base branch from master to next June 30, 2025 13:13
@Maddiaa0 Maddiaa0 marked this pull request as ready for review July 25, 2025 16:24
@Maddiaa0 Maddiaa0 requested a review from charlielye as a code owner July 25, 2025 16:24
echo "$prefix FLOW=sol_honk USE_OPTIMIZED_CONTRACT=true $run_test assert_statement"
echo "$prefix FLOW=sol_honk USE_OPTIMIZED_CONTRACT=true $run_test a_1_mul"
echo "$prefix FLOW=sol_honk USE_OPTIMIZED_CONTRACT=true $run_test slices"
echo "$prefix FLOW=sol_honk USE_OPTIMIZED_CONTRACT=true $run_test verify_honk_proof"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we don't care about optimized zk contract?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not for now, its not P1 for audit right now, but will be made a priority once everything in the current round of audits is complete

@Maddiaa0 Maddiaa0 requested a review from ludamad September 2, 2025 17:01
#!/bin/bash

# Script to copy optimized Solidity verifier files into the C++ honk_optimized_contract.hpp file
# This automates the manual process of copying optimized verifier contracts
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comments from slack:

No comments are blocking, ok with this going in as-is for now

but - we can probably remove a bit of brittleness. you're doing template discovery on what would normally be an output artifact, then doing find replace with strings.
What about:

the script copies the solidity as-is. but the solidity has e.g. // c++-replace VK_HASH comments.
the c++-replace directives can affect the next line
2. store the C++ artifacts in a map of symbol to string
3. process the c++-replace directives
probably error on any unused symbols

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the other thing is, it's more normal to bundle artifacts in C++ as its own header file

Complete, without zk

Cuts off a million

next steps:
proof size has a large consequence with this one, due to memory expansion, so having a different proof type for the keccak one which does tighter serialisation will save a good chunk of gas - working on this next
- pr here #16018
@AztecBot AztecBot added this pull request to the merge queue Sep 2, 2025
Merged via the queue into next with commit 34eabaa Sep 2, 2025
15 checks passed
@AztecBot AztecBot deleted the md/opt-sol-honk branch September 2, 2025 19:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants