HomeSoftware Heritage

hashutil: Add MultiHash to compute hashes of content in 1 roundtrip

Description

hashutil: Add MultiHash to compute hashes of content in 1 roundtrip

This is the first step to improve the hashutil module according to
"the" plan [1].

In this regards, the hashutil exposes the same function as before.
Internally though, they now uses a MultiHash instance.

Related D410

[1] D410#7952

Details

Provenance
ardumontAuthored on Sep 14 2018, 8:04 PM
ardumontPushed on Sep 17 2018, 12:07 PM
Differential Revision
D410: model.hashutil: Open new endpoint to allow to hash stream
Parents
rDMOD7f885ed5506d: swh.model.hashutil: Open hash_stream endpoint
Branches
Unknown
Tags
Unknown