Skip to content

cartoonitunes/multiply7-verification

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

Multiply7 Verification

Exact bytecode verification for the Multiply7 tutorial contract deployed on Ethereum mainnet during the first week of Frontier.

Contract

Verification

  • Compiler: Solidity v0.1.1 (soljson-v0.1.1+commit.6ff4cd6.js)
  • Optimizer: OFF
  • Match: Exact bytecode match (creation code, 126 bytes)

Source

contract Multiply7 {
    function multiply(uint input) constant returns (uint) {
        return input * 7;
    }
}

Context

This is a deployment of the Multiply7 tutorial contract from the official Solidity documentation. It was one of the first example contracts developers would compile and deploy to learn Ethereum smart contract development. Deployed just 3 days after Ethereum mainnet launch (Frontier, July 30, 2015).

The deployer (0xc70ba22f) deployed 11 contracts between blocks 55,101 and 362,644, including multiple CoinFlip gambling variants and token experiments, suggesting an early developer working through tutorials and building experimental contracts during the first days of Ethereum.

Reproduce

# Using soljson-v0.1.1+commit.6ff4cd6.js
node -e "
var solc = require('./soljson-v0.1.1+commit.6ff4cd6.js');
var compile = solc.cwrap('compileJSON','string',['string','number']);
var src = 'contract Multiply7 { function multiply(uint input) constant returns (uint) { return input * 7; } }';
var out = JSON.parse(compile(src, 0));
console.log(out.contracts.Multiply7.bytecode);
"
# Expected: 6060604052606d8060116000396000f30060606040526000357c010000000000000000000000000000000000000000000000000000000090048063c6888fa1146037576035565b005b6046600480359060200150605c565b6040518082815260200191505060405180910390f35b60006007820290506068565b91905056

About

Frontier era bytecode verification for the Multiply7 contract (block 66,173)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors