Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: remove verifier #34

Merged
merged 1 commit into from
Apr 18, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion src/HyVM.huff
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

/// @title HyVM
/// @notice Run arbitrary code on the EVM
/// @dev This version uses the "no-verifier" abstraction, but "contract-verifier" can be used.

#include "./Pointer.huff"
#include "./Jump-table.huff"
Expand Down
258 changes: 0 additions & 258 deletions src/abstracts/contract-verifier.huff

This file was deleted.

3 changes: 2 additions & 1 deletion src/abstracts/no-verifier.huff
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
// SPDX-License-Identifier: Unlicence

/// @title No Verifier
/// @title No Verifier.
/// @notice Abstract contract for the HyVM without call/store verifications
/// checks could be implemented at the discretion of the developper.

/// @dev jump table will be located at 0x20, after the execution pointer
#define constant HOST_MEMORY_START = 0x340
Expand Down
5 changes: 0 additions & 5 deletions test/HyVM/Opcodes.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,6 @@ contract OpcodesTest is Test {
console.log(Utils.iToHex(abi.encodePacked(bytes(str).length)));
}

// just a test that shows what to write in HyVM.huff to console.log something.
function testGenerate() public view {
logStr("no call verifier set");
}

// =================== TESTS ==============

function testPushReturnMstore() public {
Expand Down
10 changes: 0 additions & 10 deletions test/utils/Utils.sol
Original file line number Diff line number Diff line change
Expand Up @@ -105,14 +105,4 @@ library Utils {
}
return (false, 0);
}

function setVerifierBytecode(address hyvm, address verifier) public pure returns (bytes memory bytecode) {
// bytecode generated by: easm test/verifiers/set-verifier
// => replace the dummy contract by our verifier
bytecode = replace(
hex"7312312312312312312312312312312312312312317f58a8a9223af434080477cd2d1a2667aba3ce9f1301007611a4d07a0af708e65a55",
0x1231231231231231231231231231231231231231,
verifier
);
}
}
92 changes: 0 additions & 92 deletions test/verifiers/CallVerifiers.sol

This file was deleted.

Loading