-
Notifications
You must be signed in to change notification settings - Fork 234
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1775 from AztecProtocol/defi-bridge-project
Defi bridge project
- Loading branch information
Showing
18 changed files
with
642 additions
and
224 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
#include "./verify.hpp" | ||
#include "./account.hpp" | ||
#include "./account_tx.hpp" | ||
|
||
namespace rollup { | ||
namespace proofs { | ||
namespace account { | ||
|
||
namespace { | ||
verify_result<Composer> build_circuit(Composer& composer, account_tx& tx, circuit_data const&) | ||
{ | ||
verify_result<Composer> result; | ||
account_circuit(composer, tx); | ||
return result; | ||
} | ||
} // namespace | ||
|
||
verify_result<Composer> verify_logic(account_tx& tx, circuit_data const& cd) | ||
{ | ||
Composer composer = Composer(cd.proving_key, cd.verification_key, cd.num_gates); | ||
return verify_logic_internal(composer, tx, cd, "account", build_circuit); | ||
} | ||
|
||
verify_result<Composer> verify(account_tx& tx, circuit_data const& cd) | ||
{ | ||
Composer composer = Composer(cd.proving_key, cd.verification_key, cd.num_gates); | ||
return verify_internal(composer, tx, cd, "account", true, build_circuit); | ||
} | ||
|
||
} // namespace account | ||
} // namespace proofs | ||
} // namespace rollup |
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,19 @@ | ||
#pragma once | ||
#include "../verify.hpp" | ||
#include "./compute_circuit_data.hpp" | ||
#include "./account.hpp" | ||
#include <stdlib/types/turbo.hpp> | ||
|
||
namespace rollup { | ||
namespace proofs { | ||
namespace account { | ||
|
||
using namespace plonk::stdlib::types::turbo; | ||
|
||
verify_result<Composer> verify_logic(account_tx& tx, circuit_data const& cd); | ||
|
||
verify_result<Composer> verify(account_tx& tx, circuit_data const& cd); | ||
|
||
} // namespace account | ||
} // namespace proofs | ||
} // namespace rollup |
Oops, something went wrong.