Commit Graph

2 Commits

Author SHA1 Message Date
Siddharth Agarwal
28d6845285 mononoke-types: drop blake2 NULL hash
Summary:
Since none of the typed hashes use it, NULL hashes aren't going to be
used anywhere in the system.

Reviewed By: farnz

Differential Revision: D7365068

fbshipit-source-id: d67c021a6c04ca1a120264ec88943a5b35d9b8c4
2018-03-22 10:29:02 -07:00
Siddharth Agarwal
4073388b7c mononoke-types: add BlobHash and ChangesetId as other typed hashes
Summary:
I think it makes a lot of logical sense to have three separate hash
types:

* `ChangesetId` for changesets
* `UnodeHash` for unodes
* `BlobHash` for file blobs

These three are never going to mix. Note that manifests and file unodes are
going to mix in e.g. tree manifest unodes.

Reviewed By: farnz

Differential Revision: D7300742

fbshipit-source-id: 688b410f7a5304fdd5ab3a6800137632887f97b9
2018-03-16 10:15:05 -07:00