-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
libzeth: consistent type and file names
- Loading branch information
Showing
27 changed files
with
183 additions
and
181 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
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 was deleted.
Oops, something went wrong.
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,30 @@ | ||
// Copyright (c) 2015-2020 Clearmatics Technologies Ltd | ||
// | ||
// SPDX-License-Identifier: LGPL-3.0+ | ||
|
||
#ifndef __ZETH_SNARKS_DEFAULT_DEFAULT_API_HANDLER_HPP__ | ||
#define __ZETH_SNARKS_DEFAULT_DEFAULT_API_HANDLER_HPP__ | ||
|
||
#include "libzeth/snarks/default/default_snark.hpp" | ||
|
||
#if defined(ZKSNARK_PGHR13) | ||
#include "libzeth/snarks/pghr13/pghr13_api_handler.hpp" | ||
namespace libzeth | ||
{ | ||
template<typename ppT> | ||
using default_api_handler = pghr13_api_handler_handler<ppT>; | ||
} // namespace libzeth | ||
|
||
#elif defined(ZKSNARK_GROTH16) | ||
#include "libzeth/snarks/groth16/groth16_api_handler.hpp" | ||
namespace libzeth | ||
{ | ||
template<typename ppT> | ||
using default_api_handler = groth16_api_handler_handler<ppT>; | ||
} // namespace libzeth | ||
|
||
#else | ||
#error No recognized SNARK_* macro defined (see CMakelists.txt). | ||
#endif | ||
|
||
#endif // __ZETH_SNARKS_DEFAULT_DEFAULT_API_HANDLER_HPP__ |
This file was deleted.
Oops, something went wrong.
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,26 @@ | ||
// Copyright (c) 2015-2020 Clearmatics Technologies Ltd | ||
// | ||
// SPDX-License-Identifier: LGPL-3.0+ | ||
|
||
#ifndef __ZETH_SNARKS_DEFAULT_DEFAULT_SNARK_HPP__ | ||
#define __ZETH_SNARKS_DEFAULT_DEFAULT_SNARK_HPP__ | ||
|
||
#if defined(ZKSNARK_PGHR13) | ||
#include "libzeth/snarks/pghr13/pghr13_snark.hpp" | ||
namespace libzeth | ||
{ | ||
template<typename ppT> using default_snark = pghr13_snark<ppT>; | ||
} // namespace libzeth | ||
|
||
#elif defined(ZKSNARK_GROTH16) | ||
#include "libzeth/snarks/groth16/groth16_snark.hpp" | ||
namespace libzeth | ||
{ | ||
template<typename ppT> using default_snark = groth16_snark<ppT>; | ||
} // namespace libzeth | ||
|
||
#else | ||
#error No recognized SNARK_* macro defined (see CMakelists.txt). | ||
#endif | ||
|
||
#endif // __ZETH_SNARKS_DEFAULT_DEFAULT_SNARK_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
Oops, something went wrong.