{"action":"created","issue":{"url":"https://api.github.com/repos/opencontainers/image-spec/issues/486","repository_url":"https://api.github.com/repos/opencontainers/image-spec","labels_url":"https://api.github.com/repos/opencontainers/image-spec/issues/486/labels{/name}","comments_url":"https://api.github.com/repos/opencontainers/image-spec/issues/486/comments","events_url":"https://api.github.com/repos/opencontainers/image-spec/issues/486/events","html_url":"https://github.com/opencontainers/image-spec/pull/486","id":194451737,"number":486,"title":"chain: add implementation of ChainID","user":{"login":"stevvooe","id":120601,"avatar_url":"https://avatars.githubusercontent.com/u/120601?v=3","gravatar_id":"","url":"https://api.github.com/users/stevvooe","html_url":"https://github.com/stevvooe","followers_url":"https://api.github.com/users/stevvooe/followers","following_url":"https://api.github.com/users/stevvooe/following{/other_user}","gists_url":"https://api.github.com/users/stevvooe/gists{/gist_id}","starred_url":"https://api.github.com/users/stevvooe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stevvooe/subscriptions","organizations_url":"https://api.github.com/users/stevvooe/orgs","repos_url":"https://api.github.com/users/stevvooe/repos","events_url":"https://api.github.com/users/stevvooe/events{/privacy}","received_events_url":"https://api.github.com/users/stevvooe/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2016-12-08T21:40:08Z","updated_at":"2016-12-08T22:22:47Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/opencontainers/image-spec/pulls/486","html_url":"https://github.com/opencontainers/image-spec/pull/486","diff_url":"https://github.com/opencontainers/image-spec/pull/486.diff","patch_url":"https://github.com/opencontainers/image-spec/pull/486.patch"},"body":"The specification defines an algorithm to calculate a `ChainID`, which\r\ncan be used to identify the result of subsequent applications of layers.\r\nBecause this algorithm is subtle and only needs to implemented in a\r\nsingle place, we provide a reference implementation.\r\n\r\nFor convenience, we provide functions that calculate all the chain ids\r\nand just the top-level one. It is is integrated with the\r\ndistribution/digest type for safety and convenience.\r\n\r\nTests are formulated based on pre-calculation of chain identifiers to\r\nensure correctness.\r\n\r\nSigned-off-by: Stephen J Day <stephen.day@docker.com>\r\n\r\nRelates to #482.\r\nRequires #487."},"comment":{"url":"https://api.github.com/repos/opencontainers/image-spec/issues/comments/265873772","html_url":"https://github.com/opencontainers/image-spec/pull/486#issuecomment-265873772","issue_url":"https://api.github.com/repos/opencontainers/image-spec/issues/486","id":265873772,"user":{"login":"stevvooe","id":120601,"avatar_url":"https://avatars.githubusercontent.com/u/120601?v=3","gravatar_id":"","url":"https://api.github.com/users/stevvooe","html_url":"https://github.com/stevvooe","followers_url":"https://api.github.com/users/stevvooe/followers","following_url":"https://api.github.com/users/stevvooe/following{/other_user}","gists_url":"https://api.github.com/users/stevvooe/gists{/gist_id}","starred_url":"https://api.github.com/users/stevvooe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stevvooe/subscriptions","organizations_url":"https://api.github.com/users/stevvooe/orgs","repos_url":"https://api.github.com/users/stevvooe/repos","events_url":"https://api.github.com/users/stevvooe/events{/privacy}","received_events_url":"https://api.github.com/users/stevvooe/received_events","type":"User","site_admin":false},"created_at":"2016-12-08T22:22:47Z","updated_at":"2016-12-08T22:22:47Z","body":">  I don't like\r\nthe spec consumes Docker, which consumes the spec, etc. reference\r\ncycle.\r\n\r\nThe spec does not \"consume\" docker. The digest package is just a Go package from docker. Is the problem that the dependency has the name \"docker\" in it, like it is some big-bad word?"}}
{"actor":{"display_login":"stevvooe"}}