Skip to content
This repository has been archived by the owner on Oct 4, 2019. It is now read-only.

NatSpec Determination

Mr. Is edited this page Jun 11, 2017 · 8 revisions

name: NatSpec Determination category:

Publishing and finding the [NatSpec] (./Ethereum-Natural-Specification-Format) documentation for a contract is an important part of the Ethereum system. There are two pieces to this puzzle: the first is for a given client to be able to determine, given a call to a contract, what a trustworthy NatSpec documentation hash for the contract is; the second is to find the actual NatSpec documentation body given its content hash.

Trusted Content Determination

The former, trusted content determination, will ultimately be accomplished through a sophisticated reputation system. In the meantime, we (the Ethereum foundation) will maintain our own curated repository of trusted NatSpec documentation hashes in a contract. The contract is trivial, just providing a mapping from contract code hash to NatSpec JSON file hash. It can be found here. We, alone, will retain the key updating and adding entries to this contract.

This contract will have a specific address on the PoC-9 & Frontier testnet, probably referenced from the Ethereum services contract.

Content Publishing and Distribution

The latter, content publishing and distribution, will ultimately be accomplished through the "Swarm" subsystem or IPFS. Until then, we will piggy back on the existing workaround for content-based publication and distribution; the URL Hint system.

Clone this wiki locally