Verified contractPartial
Verifier
Address0xc3c4d82cef32ddaf1f5ce1309b02ddd32bcd54e0
- Balance
0 ETH
- Transactions
1
- Compiler
solc 0.1.6
- Same code
1 more contract
Details
- Compiler
- solc 0.1.6+commit.d41f8b7c
- Language
- solidity
- Optimization
- No
- License
- Not stated
- Match
- Partialcreation code: yes, runtime code: yes
- Verified on Sourcify
- Created in block
- 504,111
- Creation transaction
- 0x2cdcea23b6…6f7e6393a5
Verifier.sol
// Recovered by EthereumHistory (ethereumhistory.com) -sw
contract Verifier {
struct Profile {
bytes32 hash;
uint code;
bool verified;
}
address user;
mapping (address => Profile) profiles;
function newProfile(address addr, bytes32 hash, uint code) {
user = addr;
profiles[user].hash = hash;
profiles[user].code = code;
}
function getProfile(address addr) returns (bytes32 hash, uint code) {
Profile p = profiles[addr];
hash = p.hash;
code = p.code;
}
function verify(address addr, bytes32 hash, uint code) returns (bool ok) {
bytes32 h = profiles[addr].hash;
uint c = profiles[addr].code;
bool matched = h == hash && c == code;
if (matched) profiles[addr].verified = true;
ok = matched;
}
}
Compiler settingsShow
{
"optimizer": {
"runs": 200,
"enabled": false
}
}Source code and metadata: Sourcify.
The source code belongs to the authors of the contract.