{"action":"created","issue":{"url":"https://api.github.com/repos/opencontainers/image-spec/issues/193","repository_url":"https://api.github.com/repos/opencontainers/image-spec","labels_url":"https://api.github.com/repos/opencontainers/image-spec/issues/193/labels{/name}","comments_url":"https://api.github.com/repos/opencontainers/image-spec/issues/193/comments","events_url":"https://api.github.com/repos/opencontainers/image-spec/issues/193/events","html_url":"https://github.com/opencontainers/image-spec/issues/193","id":170074419,"number":193,"title":"digest format mismatch","user":{"login":"amitsaha","id":512598,"avatar_url":"https://avatars.githubusercontent.com/u/512598?v=3","gravatar_id":"","url":"https://api.github.com/users/amitsaha","html_url":"https://github.com/amitsaha","followers_url":"https://api.github.com/users/amitsaha/followers","following_url":"https://api.github.com/users/amitsaha/following{/other_user}","gists_url":"https://api.github.com/users/amitsaha/gists{/gist_id}","starred_url":"https://api.github.com/users/amitsaha/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amitsaha/subscriptions","organizations_url":"https://api.github.com/users/amitsaha/orgs","repos_url":"https://api.github.com/users/amitsaha/repos","events_url":"https://api.github.com/users/amitsaha/events{/privacy}","received_events_url":"https://api.github.com/users/amitsaha/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-08-09T03:33:27Z","updated_at":"2016-08-09T12:55:45Z","closed_at":null,"body":"```\r\n$ git diff\r\ndiff --git a/image/descriptor.go b/image/descriptor.go\r\nindex 9a5d183..3ad70ec 100644\r\n--- a/image/descriptor.go\r\n+++ b/image/descriptor.go\r\n@@ -106,7 +106,7 @@ func (d *descriptor) validateContent(r io.Reader) error {\r\n                return errors.Wrap(err, \"error generating hash\")\r\n        }\r\n \r\n-       digest := \"sha256:\" + hex.EncodeToString(h.Sum(nil))\r\n+       digest := \"sha256-\" + hex.EncodeToString(h.Sum(nil))\r\n \r\n        if digest != d.Digest {\r\n                return errors.New(\"digest mismatch\")\r\n```\r\n\r\nIs this an oversight? My example image is here: https://github.com/amitsaha/oci-image-experiments/tree/master/image"},"comment":{"url":"https://api.github.com/repos/opencontainers/image-spec/issues/comments/238543799","html_url":"https://github.com/opencontainers/image-spec/issues/193#issuecomment-238543799","issue_url":"https://api.github.com/repos/opencontainers/image-spec/issues/193","id":238543799,"user":{"login":"amitsaha","id":512598,"avatar_url":"https://avatars.githubusercontent.com/u/512598?v=3","gravatar_id":"","url":"https://api.github.com/users/amitsaha","html_url":"https://github.com/amitsaha","followers_url":"https://api.github.com/users/amitsaha/followers","following_url":"https://api.github.com/users/amitsaha/following{/other_user}","gists_url":"https://api.github.com/users/amitsaha/gists{/gist_id}","starred_url":"https://api.github.com/users/amitsaha/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amitsaha/subscriptions","organizations_url":"https://api.github.com/users/amitsaha/orgs","repos_url":"https://api.github.com/users/amitsaha/repos","events_url":"https://api.github.com/users/amitsaha/events{/privacy}","received_events_url":"https://api.github.com/users/amitsaha/received_events","type":"User","site_admin":false},"created_at":"2016-08-09T12:55:45Z","updated_at":"2016-08-09T12:55:45Z","body":"Yeah, I was referring to the construction of the digest using \"sha256:\" rather than \"sha256-\". Have I named my files wrongly? I am probably confused somewhere."}}
{"actor":{"display_login":"amitsaha"}}