-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
proof-producer: rw & zkevm check fixes
- Loading branch information
Showing
21 changed files
with
224 additions
and
120 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
18 changes: 18 additions & 0 deletions
18
crypto3/libs/blueprint/include/nil/blueprint/zkevm_bbf/opcodes/call.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,18 @@ | ||
#pragma once | ||
|
||
#include <numeric> | ||
#include <algorithm> | ||
|
||
#include <nil/blueprint/zkevm/zkevm_word.hpp> | ||
#include <nil/blueprint/zkevm_bbf/types/opcode.hpp> | ||
#include <nil/blueprint/zkevm_bbf/opcodes/dummy.hpp> | ||
|
||
namespace nil { | ||
namespace blueprint { | ||
namespace bbf{ | ||
|
||
template<typename FieldType> | ||
using zkevm_call_operation = zkevm_dummy_operation<FieldType>; | ||
} // namespace bbf | ||
} // namespace blueprint | ||
} // namespace nil |
35 changes: 35 additions & 0 deletions
35
crypto3/libs/blueprint/include/nil/blueprint/zkevm_bbf/opcodes/dummy.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,35 @@ | ||
#pragma once | ||
|
||
#include <iostream> | ||
|
||
#include <nil/blueprint/zkevm/zkevm_word.hpp> | ||
#include <nil/blueprint/zkevm_bbf/types/opcode.hpp> | ||
|
||
namespace nil { | ||
namespace blueprint { | ||
namespace bbf{ | ||
template<typename FieldType> | ||
class opcode_abstract; | ||
|
||
// SHOULD NOT BE USED IN THE FINAL VERSION | ||
template<typename FieldType> | ||
class zkevm_dummy_operation : public opcode_abstract<FieldType> { | ||
public: | ||
virtual void fill_context( | ||
typename generic_component<FieldType, GenerationStage::ASSIGNMENT>::context_type &context, | ||
const opcode_input_type<FieldType, GenerationStage::ASSIGNMENT> ¤t_state | ||
) override { | ||
} | ||
virtual void fill_context( | ||
typename generic_component<FieldType, GenerationStage::CONSTRAINTS>::context_type &context, | ||
const opcode_input_type<FieldType, GenerationStage::CONSTRAINTS> ¤t_state | ||
) override { | ||
std::cout << "DUMMY CONTSTRAINT, REPLACE ME WITH SOME ACTUAL IMPL" << std::endl; | ||
} | ||
virtual std::size_t rows_amount() override { | ||
return 1; | ||
} | ||
}; | ||
} // namespace bbf | ||
} // namespace blueprint | ||
} // namespace nil |
18 changes: 18 additions & 0 deletions
18
crypto3/libs/blueprint/include/nil/blueprint/zkevm_bbf/opcodes/gas.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,18 @@ | ||
#pragma once | ||
|
||
#include <numeric> | ||
#include <algorithm> | ||
|
||
#include <nil/blueprint/zkevm/zkevm_word.hpp> | ||
#include <nil/blueprint/zkevm_bbf/types/opcode.hpp> | ||
#include <nil/blueprint/zkevm_bbf/opcodes/dummy.hpp> | ||
|
||
namespace nil { | ||
namespace blueprint { | ||
namespace bbf{ | ||
|
||
template<typename FieldType> | ||
using zkevm_gas_operation = zkevm_dummy_operation<FieldType>; | ||
} // namespace bbf | ||
} // namespace blueprint | ||
} // namespace nil |
18 changes: 18 additions & 0 deletions
18
crypto3/libs/blueprint/include/nil/blueprint/zkevm_bbf/opcodes/mcopy.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,18 @@ | ||
#pragma once | ||
|
||
#include <numeric> | ||
#include <algorithm> | ||
|
||
#include <nil/blueprint/zkevm/zkevm_word.hpp> | ||
#include <nil/blueprint/zkevm_bbf/types/opcode.hpp> | ||
#include <nil/blueprint/zkevm_bbf/opcodes/dummy.hpp> | ||
|
||
namespace nil { | ||
namespace blueprint { | ||
namespace bbf{ | ||
|
||
template<typename FieldType> | ||
using zkevm_mcopy_operation = zkevm_dummy_operation<FieldType>; | ||
} // namespace bbf | ||
} // namespace blueprint | ||
} // namespace nil |
18 changes: 18 additions & 0 deletions
18
crypto3/libs/blueprint/include/nil/blueprint/zkevm_bbf/opcodes/returndatacopy.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,18 @@ | ||
#pragma once | ||
|
||
#include <numeric> | ||
#include <algorithm> | ||
|
||
#include <nil/blueprint/zkevm/zkevm_word.hpp> | ||
#include <nil/blueprint/zkevm_bbf/types/opcode.hpp> | ||
#include <nil/blueprint/zkevm_bbf/opcodes/dummy.hpp> | ||
|
||
namespace nil { | ||
namespace blueprint { | ||
namespace bbf{ | ||
|
||
template<typename FieldType> | ||
using zkevm_returndatacopy_operation = zkevm_dummy_operation<FieldType>; | ||
} // namespace bbf | ||
} // namespace blueprint | ||
} // namespace nil |
18 changes: 18 additions & 0 deletions
18
crypto3/libs/blueprint/include/nil/blueprint/zkevm_bbf/opcodes/returndatasize.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,18 @@ | ||
#pragma once | ||
|
||
#include <numeric> | ||
#include <algorithm> | ||
|
||
#include <nil/blueprint/zkevm/zkevm_word.hpp> | ||
#include <nil/blueprint/zkevm_bbf/types/opcode.hpp> | ||
#include <nil/blueprint/zkevm_bbf/opcodes/dummy.hpp> | ||
|
||
namespace nil { | ||
namespace blueprint { | ||
namespace bbf{ | ||
|
||
template<typename FieldType> | ||
using zkevm_returndatasize_operation = zkevm_dummy_operation<FieldType>; | ||
} // namespace bbf | ||
} // namespace blueprint | ||
} // namespace nil |
18 changes: 18 additions & 0 deletions
18
crypto3/libs/blueprint/include/nil/blueprint/zkevm_bbf/opcodes/staticcall.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,18 @@ | ||
#pragma once | ||
|
||
#include <numeric> | ||
#include <algorithm> | ||
|
||
#include <nil/blueprint/zkevm/zkevm_word.hpp> | ||
#include <nil/blueprint/zkevm_bbf/types/opcode.hpp> | ||
#include <nil/blueprint/zkevm_bbf/opcodes/dummy.hpp> | ||
|
||
namespace nil { | ||
namespace blueprint { | ||
namespace bbf{ | ||
|
||
template<typename FieldType> | ||
using zkevm_staticcall_operation = zkevm_dummy_operation<FieldType>; | ||
} // namespace bbf | ||
} // namespace blueprint | ||
} // namespace nil |
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
Binary file added
BIN
+10 KB
proof-producer/tests/bin/proof-producer/resources/traces/increment_simple.pb.bc
Binary file not shown.
Binary file added
BIN
+234 Bytes
proof-producer/tests/bin/proof-producer/resources/traces/increment_simple.pb.copy
Binary file not shown.
Binary file added
BIN
+2 Bytes
proof-producer/tests/bin/proof-producer/resources/traces/increment_simple.pb.msg
Binary file not shown.
Binary file added
BIN
+28.1 KB
proof-producer/tests/bin/proof-producer/resources/traces/increment_simple.pb.rw
Binary file not shown.
Binary file added
BIN
+89.7 KB
proof-producer/tests/bin/proof-producer/resources/traces/increment_simple.pb.zkevm
Binary file not shown.
Oops, something went wrong.