merkle
Members list
Type members
Classlikes
Helpers for construction of MerkleTree instances
Helpers for construction of MerkleTree instances
Attributes
- Supertypes
A DiffTree is a data structured produced by comparing two MerkleTree instances with a similar structure. This tree does not necessarily cover every node and leaf present in either of the original MerkleTree instances – the focus is on the differences.
A DiffTree is a data structured produced by comparing two MerkleTree instances with a similar structure. This tree does not necessarily cover every node and leaf present in either of the original MerkleTree instances – the focus is on the differences.
Attributes
- Companion
- object
- Supertypes
- Known subtypes
Attributes
- Companion
- object
- Supertypes
- Known subtypes
-
object InvalidTreeFormatclass NoIDForHasherclass NoIDForToBytesobject TreesDivergedclass UnknownHasherIDclass UnknownToBytesIDShow all
A hasher is used to compute the hash of a MerkleTree node.
A hasher is used to compute the hash of a MerkleTree node.
Attributes
- Companion
- object
- Supertypes
- Known subtypes
-
class MessageDigestHasher
A Merkle tree is a data structure which consists of leaves – that hash their data contents according to user-provided procedure and data interpretation, and nodes – which hash the hashes of their subtrees.
A Merkle tree is a data structure which consists of leaves – that hash their data contents according to user-provided procedure and data interpretation, and nodes – which hash the hashes of their subtrees.
This allows for fast comparison between two trees, as we only need to compared the root node hashes
Attributes
- Companion
- object
- Supertypes
- Known subtypes
Attributes
- Companion
- class
- Supertypes
- Self type
-
MerkleTree.type
A mechanism to control how the hashable data is produced from user-provided data. For example, we might use Paths in our tree construction, but when hashing them we don't want to treat them as strings, but rather read the file contents and hash those instead.
A mechanism to control how the hashable data is produced from user-provided data. For example, we might use Paths in our tree construction, but when hashing them we don't want to treat them as strings, but rather read the file contents and hash those instead.
Attributes
- Companion
- object
- Supertypes
- Known subtypes