Back to Home

HashReg

Utility
0xa85146c7ba44...5432ab9bbf06
FrontierContract #131Exact Bytecode MatchEdit this contract

Bytecode verified via sibling

This contract shares identical runtime bytecode with HashReg (0x23bf622b...) which has been verified through compiler archaeology.

Deployed August 10, 2015 (11 years ago)Block 63,333

go-ethereum's built-in hash registrar, mapping a key to a content hash

Frontier EraVerified Source

Context

Deployed on 10 August 2015, in the first fortnight of the Frontier chain, by the account that also deployed the global registrar.

Key Facts
Deployment Block
63,333
Deployment Date
Aug 10, 2015, 10:31 AM
Code Size
164.0 B
Gas at Deploy
61,640

Description

One of the three registrar contracts go-ethereum shipped for the Frontier release. setowner claims the contract for the first account that calls it, after which only that account may call register to bind a numeric key to a content hash. It is the storage half of the natspec lookup: a contract's code hash points at the hash of its documentation, and URLhint then turns that hash into a URL. The source is HashRegSrc in go-ethereum's common/registrar/contracts.go, and the deployed creation code is byte for byte the HashRegCode constant that sits beside it in the same file. Etherscan cannot verify it: the bytecode was produced by the PoC-8 era cpp-ethereum compiler, which reports itself as version 0.8.2 and predates every compiler Etherscan offers. It reproduces exactly from that compiler with the optimiser on, provided the two state variables are declared above the two functions.

Source Verified

Exact bytecode match(164 bytes)

Bytecode hardcoded verbatim in go-ethereum v1.0.0 common/registrar/contracts.go (HashRegCode). Source from HashRegSrc in same file. Authored by Gav Wood, Ethereum Foundation. Exact 152-byte runtime match confirmed.

Heuristic Analysis

The following characteristics were detected through bytecode analysis and may not be accurate.

Detected Type: Utility

Bytecode Overview

Opcodes164
Unique Opcodes47
Jump Instructions14
Storage Operations4

External Links

Related contracts