-
Notifications
You must be signed in to change notification settings - Fork 103
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9b1d132
commit 5e03688
Showing
52 changed files
with
1,670 additions
and
1,688 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
2 changes: 1 addition & 1 deletion
2
cpp/src/barretenberg/dsl/acir_format/merkle_membership_constraint.hpp
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,83 @@ | ||
#pragma once | ||
#include "barretenberg/plonk/composer/splitting_tmp/ultra_plonk_composer.hpp" | ||
#include "barretenberg/plonk/proof_system/constants.hpp" | ||
#include "barretenberg/plonk/composer/standard_composer.hpp" | ||
#include "barretenberg/plonk/composer/turbo_composer.hpp" | ||
#include "barretenberg/plonk/composer/ultra_composer.hpp" | ||
#include "barretenberg/plonk/proof_system/prover/prover.hpp" | ||
#include "barretenberg/stdlib/primitives/bigfield/bigfield.hpp" | ||
#include "barretenberg/stdlib/primitives/biggroup/biggroup.hpp" | ||
#include "barretenberg/stdlib/primitives/bit_array/bit_array.hpp" | ||
#include "barretenberg/stdlib/primitives/bool/bool.hpp" | ||
#include "barretenberg/stdlib/primitives/packed_byte_array/packed_byte_array.hpp" | ||
#include "barretenberg/stdlib/primitives/byte_array/byte_array.hpp" | ||
#include "barretenberg/stdlib/primitives/uint/uint.hpp" | ||
#include "barretenberg/stdlib/primitives/witness/witness.hpp" | ||
#include "barretenberg/stdlib/primitives/bigfield/bigfield.hpp" | ||
#include "barretenberg/stdlib/primitives/biggroup/biggroup.hpp" | ||
#include "barretenberg/stdlib/commitment/pedersen/pedersen.hpp" | ||
#include "barretenberg/stdlib/commitment/pedersen/pedersen_plookup.hpp" | ||
#include "barretenberg/stdlib/merkle_tree/hash_path.hpp" | ||
#include "barretenberg/stdlib/encryption/schnorr/schnorr.hpp" | ||
#include "barretenberg/stdlib/primitives/curves/bn254.hpp" | ||
#include "barretenberg/stdlib/primitives/curves/secp256k1.hpp" | ||
#include "barretenberg/stdlib/primitives/memory/rom_table.hpp" | ||
#include "barretenberg/stdlib/recursion/verifier/program_settings.hpp" | ||
#include "barretenberg/stdlib/primitives/memory/ram_table.hpp" | ||
#include "barretenberg/stdlib/primitives/memory/rom_table.hpp" | ||
#include "barretenberg/stdlib/primitives/memory/dynamic_array.hpp" | ||
|
||
namespace acir_format { | ||
|
||
using NoirComposer = plonk::UltraComposer; | ||
|
||
using Prover = std::conditional_t< | ||
std::same_as<NoirComposer, plonk::UltraComposer>, | ||
plonk::UltraWithKeccakProver, | ||
std::conditional_t<std::same_as<NoirComposer, plonk::TurboComposer>, plonk::TurboProver, plonk::Prover>>; | ||
|
||
using Verifier = std::conditional_t< | ||
std::same_as<NoirComposer, plonk::UltraComposer>, | ||
plonk::UltraWithKeccakVerifier, | ||
std::conditional_t<std::same_as<NoirComposer, plonk::TurboComposer>, plonk::TurboVerifier, plonk::Verifier>>; | ||
|
||
using witness_ct = proof_system::plonk::stdlib::witness_t<NoirComposer>; | ||
using public_witness_ct = proof_system::plonk::stdlib::public_witness_t<NoirComposer>; | ||
using bool_ct = proof_system::plonk::stdlib::bool_t<NoirComposer>; | ||
using byte_array_ct = proof_system::plonk::stdlib::byte_array<NoirComposer>; | ||
using packed_byte_array_ct = proof_system::plonk::stdlib::packed_byte_array<NoirComposer>; | ||
using field_ct = proof_system::plonk::stdlib::field_t<NoirComposer>; | ||
using suint_ct = proof_system::plonk::stdlib::safe_uint_t<NoirComposer>; | ||
using uint8_ct = proof_system::plonk::stdlib::uint8<NoirComposer>; | ||
using uint16_ct = proof_system::plonk::stdlib::uint16<NoirComposer>; | ||
using uint32_ct = proof_system::plonk::stdlib::uint32<NoirComposer>; | ||
using uint64_ct = proof_system::plonk::stdlib::uint64<NoirComposer>; | ||
using bit_array_ct = proof_system::plonk::stdlib::bit_array<NoirComposer>; | ||
using fq_ct = proof_system::plonk::stdlib::bigfield<NoirComposer, barretenberg::Bn254FqParams>; | ||
using biggroup_ct = proof_system::plonk::stdlib::element<NoirComposer, fq_ct, field_ct, barretenberg::g1>; | ||
using point_ct = proof_system::plonk::stdlib::point<NoirComposer>; | ||
using pedersen_commitment = proof_system::plonk::stdlib::pedersen_commitment<NoirComposer>; | ||
using group_ct = proof_system::plonk::stdlib::group<NoirComposer>; | ||
using bn254 = proof_system::plonk::stdlib::bn254<NoirComposer>; | ||
using secp256k1_ct = proof_system::plonk::stdlib::secp256k1<NoirComposer>; | ||
|
||
namespace merkle_tree { | ||
using namespace proof_system::plonk::stdlib::merkle_tree; | ||
using hash_path = proof_system::plonk::stdlib::merkle_tree::hash_path<NoirComposer>; | ||
} // namespace merkle_tree | ||
|
||
namespace schnorr { | ||
using signature_bits = proof_system::plonk::stdlib::schnorr::signature_bits<NoirComposer>; | ||
} // namespace schnorr | ||
|
||
// Ultra-composer specific typesv | ||
using rom_table_ct = proof_system::plonk::stdlib::rom_table<plonk::UltraComposer>; | ||
|
||
// NOTE: In ultra setting, recursive verifier settings are incompatible with the settings used by Noir. | ||
// TODO: remove? | ||
using recursive_inner_verifier_settings = | ||
std::conditional_t<std::same_as<NoirComposer, plonk::UltraComposer>, | ||
proof_system::plonk::stdlib::recursion::recursive_ultra_verifier_settings<bn254>, | ||
proof_system::plonk::stdlib::recursion::recursive_turbo_verifier_settings<bn254>>; | ||
|
||
} // namespace acir_format |
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
2 changes: 0 additions & 2 deletions
2
cpp/src/barretenberg/join_split_example/proofs/join_split/join_split.hpp
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
3 changes: 1 addition & 2 deletions
3
cpp/src/barretenberg/join_split_example/proofs/mock/mock_circuit.test.cpp
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
18 changes: 10 additions & 8 deletions
18
cpp/src/barretenberg/join_split_example/proofs/notes/circuit/account/commit.hpp
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.