Skip to content
Verified contractPartial

ProofOfExistence

Address0x4e7c5ae901c0d34a45ba83ba2ba2c2b9e5247625
Balance

0 ETH

 

Transactions

485

 

Compiler

solc 0.4.2

 

Same code

1 more contract

 

Details

Compiler
solc 0.4.2+commit.af6afb04
Language
solidity
Optimization
Yes, 200 runs
License
Not stated
Match
Partialcreation code: yes, runtime code: yes
Verified on Sourcify
Created in block
3,472,874
Creation transaction
0xd6f35b4eb3…822bfd81e0
Main copy (most transactions)
0x5df99397…c48bd8c0

ProofOfExistence.sol

contract ProofOfExistence {

  mapping (string => uint) private proofs;

  function notarize(string sha256) {

    bytes memory b_hash = bytes(sha256);
    
    if ( b_hash.length == 64 ){
      if ( proofs[sha256] == 0 ){
        proofs[sha256] = block.timestamp;
      }
    }
  }
  
  function verify(string sha256) constant returns (uint) {
    return proofs[sha256];
  }
  
}
Compiler settingsShow
{
  "libraries": {},
  "optimizer": {
    "runs": 200,
    "enabled": true
  }
}

Source code and metadata: Sourcify.

The source code belongs to the authors of the contract.