Hacker GitHub

← All repos

seungwonpark/ghudegy-chain

View on GitHub ↗ ★ 92 Python

Nth commit must have commit hash with N leading zeros - 진짜 구데기컵 2018

4 mentions on Hacker News by 3 people: 2 stories, 2 comments · first 2019-10-25 · latest 2020-01-10

Mentions per year 4 mentions · busiest year 2019 (3)
20082026
  1. …work = len(sha1) - len(sha1.lstrip('0')) ... assert commit_num <= work, "Not enough work done." https://github.com/seungwonpark/kudeki-chain/blob/master/man... BTW cute that assert is exactly appropriate for the ci tests, for determining…
  2. …has 13 leading zeroes is believed to be the lowest SHA-1 hash in Github in my cursory analysis. [1] https://github.com/seungwonpark/kudeki-chain/commit/00000000...