{"action":"created","issue":{"url":"https://api.github.com/repos/trufflesuite/truffle/issues/1118","repository_url":"https://api.github.com/repos/trufflesuite/truffle","labels_url":"https://api.github.com/repos/trufflesuite/truffle/issues/1118/labels{/name}","comments_url":"https://api.github.com/repos/trufflesuite/truffle/issues/1118/comments","events_url":"https://api.github.com/repos/trufflesuite/truffle/issues/1118/events","html_url":"https://github.com/trufflesuite/truffle/issues/1118","id":342271216,"node_id":"MDU6SXNzdWUzNDIyNzEyMTY=","number":1118,"title":"Feature: support Solidity metadata","user":{"login":"gnidan","id":151065,"node_id":"MDQ6VXNlcjE1MTA2NQ==","avatar_url":"https://avatars1.githubusercontent.com/u/151065?v=4","gravatar_id":"","url":"https://api.github.com/users/gnidan","html_url":"https://github.com/gnidan","followers_url":"https://api.github.com/users/gnidan/followers","following_url":"https://api.github.com/users/gnidan/following{/other_user}","gists_url":"https://api.github.com/users/gnidan/gists{/gist_id}","starred_url":"https://api.github.com/users/gnidan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gnidan/subscriptions","organizations_url":"https://api.github.com/users/gnidan/orgs","repos_url":"https://api.github.com/users/gnidan/repos","events_url":"https://api.github.com/users/gnidan/events{/privacy}","received_events_url":"https://api.github.com/users/gnidan/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2018-07-18T10:33:29Z","updated_at":"2018-11-21T16:18:12Z","closed_at":null,"author_association":"MEMBER","body":"`solc` terminates all bytecode output with a CBOR-encoded hash of the metadata, intended for use in contract verification (ref: [documentation](https://solidity.readthedocs.io/en/v0.4.24/metadata.html)). Provided a commonly-used repository containing public contract metadata, wallet software should be able to perform contract verification natively, without relying on (or in addition to) centralized services such as Etherscan.\r\n\r\nTruffle should likely:\r\n- Allow outputting `solc`'s native metadata format as an artifact of compilation\r\n- Add a new configuration parameter, to enable users to specify a repository for uploading these metadata files\r\n- Add a command, or update the `publish` command, to publish these metadata files to the specified repository.\r\n\r\nWith this in place, wallet software can start downloading these metadata files from a given repository and perform contract verification at transaction-time.\r\n\r\nProbably lots of unknowns here to investigate, such as IPFS support (since `solc` currently only outputs the Swarm hash).\r\n\r\nThis comes out of a discussion with @chriseth. cc @danfinlay."},"comment":{"url":"https://api.github.com/repos/trufflesuite/truffle/issues/comments/440724443","html_url":"https://github.com/trufflesuite/truffle/issues/1118#issuecomment-440724443","issue_url":"https://api.github.com/repos/trufflesuite/truffle/issues/1118","id":440724443,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0MDcyNDQ0Mw==","user":{"login":"gnidan","id":151065,"node_id":"MDQ6VXNlcjE1MTA2NQ==","avatar_url":"https://avatars1.githubusercontent.com/u/151065?v=4","gravatar_id":"","url":"https://api.github.com/users/gnidan","html_url":"https://github.com/gnidan","followers_url":"https://api.github.com/users/gnidan/followers","following_url":"https://api.github.com/users/gnidan/following{/other_user}","gists_url":"https://api.github.com/users/gnidan/gists{/gist_id}","starred_url":"https://api.github.com/users/gnidan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gnidan/subscriptions","organizations_url":"https://api.github.com/users/gnidan/orgs","repos_url":"https://api.github.com/users/gnidan/repos","events_url":"https://api.github.com/users/gnidan/events{/privacy}","received_events_url":"https://api.github.com/users/gnidan/received_events","type":"User","site_admin":false},"created_at":"2018-11-21T16:18:12Z","updated_at":"2018-11-21T16:18:12Z","author_association":"MEMBER","body":"You're right, @chriseth :)"}}
{"actor":{"display_login":"gnidan"}}