-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add selecting parametrization params via CLI options
- Loading branch information
Showing
11 changed files
with
663 additions
and
222 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
62 changes: 62 additions & 0 deletions
62
bin/proof-generator/include/nil/proof-generator/arithmetization_params.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
//---------------------------------------------------------------------------// | ||
// Copyright (c) 2024 Iosif (x-mass) <[email protected]> | ||
// | ||
// Licensed under the Apache License, Version 2.0 (the "License"); | ||
// you may not use this file except in compliance with the License. | ||
// You may obtain a copy of the License at | ||
// | ||
// http://www.apache.org/licenses/LICENSE-2.0 | ||
// | ||
// Unless required by applicable law or agreed to in writing, software | ||
// distributed under the License is distributed on an "AS IS" BASIS, | ||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
// See the License for the specific language governing permissions and | ||
// limitations under the License. | ||
//---------------------------------------------------------------------------// | ||
|
||
#ifndef PROOF_GENERATOR_ARITHMETIZATION_PARAMS_HPP | ||
#define PROOF_GENERATOR_ARITHMETIZATION_PARAMS_HPP | ||
|
||
#include <array> | ||
#include <tuple> | ||
|
||
#include <nil/crypto3/algebra/curves/pallas.hpp> | ||
#include <nil/crypto3/hash/keccak.hpp> | ||
|
||
#include <nil/proof-generator/non_type_arithmetization_params.hpp> | ||
|
||
|
||
namespace nil { | ||
namespace proof_generator { | ||
|
||
// Available in runtime columns params. Order is: | ||
// witness | public_input | component_constant | component_selector | lookup_constant | lookup_selector | ||
constexpr std::array<columns_params, 1> all_columns_params = { | ||
{15, 1, 5, 30, 30, 6} | ||
// Add more params as needed. | ||
}; | ||
|
||
constexpr std::array<lambda_param, 1> all_lambda_params = { | ||
9 | ||
// Add more params as needed. | ||
}; | ||
|
||
constexpr std::array<grind_param, 1> all_grind_params = { | ||
69 | ||
// Add more params as needed. | ||
}; | ||
|
||
using CurveTypes = std::tuple< | ||
nil::crypto3::algebra::curves::pallas | ||
// Add more curves as needed. | ||
>; | ||
|
||
using HashTypes = std::tuple< | ||
nil::crypto3::hashes::keccak_1600<256> | ||
// Add more hashes as needed. | ||
>; | ||
|
||
} // namespace proof_generator | ||
} // namespace nil | ||
|
||
#endif // PROOF_GENERATOR_ARITHMETIZATION_PARAMS_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.