Created
May 13, 2021 07:11
-
-
Save bluepnume/87ac43734b2c98c2fe83944a7c4f88a0 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const doesHashPassDifficulty = (hash : string, difficulty : number) : boolean => { | |
return (parseInt(hash, 36) % difficulty) === 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment