-
Notifications
You must be signed in to change notification settings - Fork 233
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Revert "feat: ultra keccak honk verifier (#8427)
Reverts #8391, which reverted #8261 :) Also adds a few enhancements to bring it up to date with latest crypto changes --------- Co-authored-by: ludamad <adam.domurad@gmail.com>
- Loading branch information
Showing
22 changed files
with
220 additions
and
240 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import { type ProtocolArtifact } from '@aztec/noir-protocol-circuits-types'; | ||
|
||
export type UltraHonkFlavor = 'ultra_honk' | 'ultra_keccak_honk'; | ||
|
||
const UltraKeccakHonkCircuits = ['BlockRootRollupArtifact'] as const; | ||
type UltraKeccakHonkCircuits = (typeof UltraKeccakHonkCircuits)[number]; | ||
type UltraHonkCircuits = Exclude<ProtocolArtifact, UltraKeccakHonkCircuits>; | ||
|
||
export function getUltraHonkFlavorForCircuit(artifact: UltraKeccakHonkCircuits): 'ultra_keccak_honk'; | ||
export function getUltraHonkFlavorForCircuit(artifact: UltraHonkCircuits): 'ultra_honk'; | ||
export function getUltraHonkFlavorForCircuit(artifact: ProtocolArtifact): UltraHonkFlavor; | ||
export function getUltraHonkFlavorForCircuit(artifact: ProtocolArtifact): UltraHonkFlavor { | ||
return isUltraKeccakHonkCircuit(artifact) ? 'ultra_keccak_honk' : 'ultra_honk'; | ||
} | ||
|
||
function isUltraKeccakHonkCircuit(artifact: ProtocolArtifact): artifact is UltraKeccakHonkCircuits { | ||
return UltraKeccakHonkCircuits.includes(artifact as UltraKeccakHonkCircuits); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.