Skip to content

Instantly share code, notes, and snippets.

@grahamtallen
grahamtallen / contracts...SignTester.sol
Created August 22, 2021 05:41
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.8.4+commit.c7e474f2.js&optimize=false&runs=200&gist=
pragma solidity 0.8.4;
/*
for later:
function _verify(bytes32 data, address account) pure returns (bool) {
return keccack256(data)
.toEthSignedMessageHash()
.recover(signature) == account;