Skip to content

src/lib/rinchi_hashing: Correct comment about structure of 17-char hash#28

Merged
janholstjensen merged 1 commit intoIUPAC-InChI:mainfrom
Artoria2e5:patch-1
Feb 9, 2026
Merged

src/lib/rinchi_hashing: Correct comment about structure of 17-char hash#28
janholstjensen merged 1 commit intoIUPAC-InChI:mainfrom
Artoria2e5:patch-1

Conversation

@Artoria2e5
Copy link
Contributor

@Artoria2e5 Artoria2e5 commented Feb 7, 2026

The 17-char hash has the first 14 chars derived from bits 0-64 (that's 65 of them) and the last 3 derived from 64-77 (that's 14 of them). chksum[8] does not, in fact, start with bit 65.


see also: IUPAC-InChI/InChI#193

The 17-char hash has the first 14 chars derived from bits 0-64 (that's 65 of them) and the last 3 derived from 64-77 (that's 14 of them). chksum[8] does not, in fact, start with bit 65.
const std::string HASH_17_EMPTY_STRING = "UHFFFADPSCTJAUYIS";

} // end of namespace

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like GitHub web editor does not like NOEOL.

@janholstjensen
Copy link
Collaborator

Thank you! Well spotted. If we could recover the bit lost the hash would improve, but for now we have to keep it as-is. At least the comment is now correct.

@janholstjensen janholstjensen merged commit 774f384 into IUPAC-InChI:main Feb 9, 2026
0 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants