{"id":19462589,"url":"https://github.com/ndsol/git-mine","last_synced_at":"2026-06-19T07:31:26.672Z","repository":{"id":180770462,"uuid":"196251969","full_name":"ndsol/git-mine","owner":"ndsol","description":null,"archived":false,"fork":false,"pushed_at":"2023-09-11T21:04:32.000Z","size":76,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-25T12:48:54.517Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ndsol.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-07-10T17:56:20.000Z","updated_at":"2023-09-11T21:04:37.000Z","dependencies_parsed_at":"2025-02-25T12:47:46.455Z","dependency_job_id":"e81fef2c-ab58-46ab-bd56-c86cf565199d","html_url":"https://github.com/ndsol/git-mine","commit_stats":null,"previous_names":["ndsol/git-mine"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ndsol/git-mine","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ndsol%2Fgit-mine","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ndsol%2Fgit-mine/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ndsol%2Fgit-mine/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ndsol%2Fgit-mine/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ndsol","download_url":"https://codeload.github.com/ndsol/git-mine/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ndsol%2Fgit-mine/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34522034,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-19T02:00:06.005Z","response_time":61,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-10T18:04:01.519Z","updated_at":"2026-06-19T07:31:26.655Z","avatar_url":"https://github.com/ndsol.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# git-mine\n\nYes, even git repositories are a cryptocurrency now.\n\nAnother implementation, in rust (but also using OpenCL): https://github.com/not-an-aardvark/lucky-commit\n\n# How to verify a commit hash\n\nAssuming the commit is HEAD:\n\n1. Get the first 10 digits of the (plain, ordinary) git hash:\n   `WANT=$(git rev-parse HEAD | cut -c -10)`\n1. `echo $WANT`\n1. Make sure `b2sum` is installed. On debian it is in \"coreutils\".\n1. Re-compute the git hash using `sha1sum`. Also do it with `b2sum`:\n   ```\n   MSG=$(git cat-file commit $WANT)\n   for alg in sha1sum b2sum; do\n     echo -n \"$alg \"\n     ( echo -ne \"commit $(( ${#MSG} + 1 ))\\x00\"; echo \"${MSG}\" ) | $alg | \\\n     grep $WANT\n   done\n   ```\n\n`grep` should verify for you that b2sum spit out the $WANT digits just like\nsha1sum. If there is no b2sum line, it means grep could not find $WANT digits\nin the b2sum output:\n\n### Example of a valid commit:\n...\u003cbr/\u003e\n`done`\u003cbr/\u003e\n`sha1sum` **aabbccddee** 92dbc803c03f2f45cba7ddc5813106cf  -\u003cbr/\u003e\n`b2sum` 4f9997f02a6091ac98d7a47d1a72468dfcda926212e2c855b0600c7b8aa82737d8e082acfea6a95ecad42836881916129c508675f58509 **aabbccddee** 171a74a9  -\n\n### Example of an invalid commit:\n...\u003cbr/\u003e\n`done`\u003cbr/\u003e\n`sha1sum` **aabbccddee** 92dbc803c03f2f45cba7ddc5813106cf  -\n\n(The above is missing a b2sum line with a highlighted section, if grep\ncan use of color.)\n\n# How to sign your commit\nFirst commit using whatever your normal tools are.\n\nThen from a directory inside the git repo you want to sign (a submodule is\nok), run:\n\n`git cat-file commit HEAD | git-mine`\n\nMaybe a later version will change this to take the commit hash (or HEAD,\netc.) as the first parameter. `git-mine` can run\n`git cat-file commit $HASH` as a subprocess and capture the output. To\nKeep It Simple, right now `git-mine` just expects the raw commit to be\npiped in.\n\n## How to sign your commit using OpenCL\n\n```\ncd git-mine\nmake git-mine-ocl\ncd /path/to/your/repo\ngit cat-file commit HEAD | ~/git-mine/git-mine-ocl\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fndsol%2Fgit-mine","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fndsol%2Fgit-mine","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fndsol%2Fgit-mine/lists"}