merkle
merkle
#
A tree hashes as the merkle of its entries; every kind of node hashes in its own domain.
call_key(identity, inputs)
#
The key of identity applied to arguments hashing to inputs, in order.
Source code in capturegraph-lib/capturegraph/recipes/scratch/hashing/merkle.py
hash_bytes(data, context=LEAF_CONTEXT)
#
The hash of data in context's domain.
hash_tree(path, cache=NO_CACHE)
#
The merkle hash of the file or directory at path.
A file hashes its bytes; a directory hashes its entries in name order, each as its name, whether it is a directory, and its own hash. Hidden entries count like any other.
Raises:
| Type | Description |
|---|---|
FileNotFoundError
|
If |