combine_hashes

function of dascore.workflow.serialize source

combine_hashes(
    hashes: collections.abc.Iterable[str] ,
)-> ‘str’

Return one digest standing for an ordered series of digests.

Order matters: the digests of two patches combined the other way round give a different answer, because which patch came first is part of what was done.

Examples

from dascore.workflow.serialize import combine_hashes
assert combine_hashes(["a", "b"]) != combine_hashes(["b", "a"])