The guide's token, with its duplicated transfer called issueCoin
Context
Frontier and Homestead era deployment.
Key Facts
Description
The Frontier guide's token contract, deployed with its send function present twice: once as sendCoin and once, byte for byte identical in body, as issueCoin. The same contract published at 0x45102439 carries the duplicate under the name sendCoin2, and the twelve bytes that differ between the two deployments are the dispatcher entry for that one name plus the two jump targets that follow from the entries sorting differently. Whoever deployed this had a reason to call the second copy issuance rather than a second send, though it does exactly what the first one does: check the sender's balance, move the amount, log a CoinTransfer.
Source Verified
Heuristic Analysis
The following characteristics were detected through bytecode analysis and may not be accurate.
Frontier Era
The initial release of Ethereum. A bare-bones implementation for technical users.
Bytecode Overview
Verified Source Available
Source verified through compiler archaeology and exact bytecode matching.
View Verification ProofShow source code (Solidity)
// Submitted by EthereumHistory (ethereumhistory.com)
contract token {
mapping (address => uint) public coinBalanceOf;
event CoinTransfer(address sender, address receiver, uint amount);
function token(uint supply) {
coinBalanceOf[msg.sender] = supply;
}
function sendCoin(address receiver, uint amount) returns(bool sufficient) {
if (coinBalanceOf[msg.sender] < amount) return false;
coinBalanceOf[msg.sender] -= amount;
coinBalanceOf[receiver] += amount;
CoinTransfer(msg.sender, receiver, amount);
return true;
}
function issueCoin(address receiver, uint amount) returns(bool sufficient) {
if (coinBalanceOf[msg.sender] < amount) return false;
coinBalanceOf[msg.sender] -= amount;
coinBalanceOf[receiver] += amount;
CoinTransfer(msg.sender, receiver, amount);
return true;
}
}External Links
Related contracts
Greeter
Same deployerA Frontier-era Greeter with the message: 'Hello there captain!'
0x5817e8...352f68August 16, 2015Greeter
Same deployerA Frontier-era Greeter with the message: 'Hola!'
0x86cfd9...9ae03dAugust 16, 2015Greeter
Same deployerA Frontier-era Greeter with the message: Hola! (block 97,240)
0xfd8fae...b61974August 16, 2015Greeter
Same deployerA Frontier-era Greeter with the message: 'Hola!'
0x80ca78...6cfa45August 16, 2015Greeter
Same deployerA Frontier-era Greeter with the message: 'Hola!'
0xae0724...4792f2August 16, 2015token
Same deployerThe guide's token with its transfer function duplicated under a second name
0x451024...55f607September 22, 2015