Defines the shape of a Uint8Array inclusion proof.
Defines the shape of a Hex encoded inclusion proof.
Defines the shape of an Object encoded inclusion proof. v : version number h : hash function p : proof
Defines the shape of one layer of an Object encoded inclusion proof.
Defines the shape of user provided tree data.
The type that defines the expected shape of user provided hash function names.
Defines the shape of user provided tree configuration.
Defines the internal structure of a tree.
Constant time comparison of two Uint8Arrays. Returns true if a and b are of equal non-zero length, and their contents are equal, or false otherwise. Note that zero-length inputs are considered not equal, so this function will return false.
First Uint8Array string to compare.
Second Uint8Array string to compare.
Boolean indicating if both args are identical.
Concatenates byte arrays.
Uint8Arrays to concatenate.
Concatenated Uint8Array.
Decodes a Hex encoded string to a Uint8Array.
Hex encoded Uint8Array string to decode.
Decoded Uint8Array.
Encodes a Uint8Array to Hex encoded string.
Uint8Array to encode.
HEX encoded Uint8Array string.
Test whether a number is a power of two (1,2,4,8,16,32,...). This is useful for determining if the data preparing to be added to the tree is a power of two in length, and thus a balanced tree.
Number to test.
Boolean indicating if the number is a power of two.
Pure JavaScript SHA224 hash function that accepts and returns Uint8Array values.
The data to hash.
The hash digest.
Pure JavaScript SHA256 hash function that accepts and returns Uint8Array values.
The data to hash.
The hash digest.
Pure JavaScript SHA384 hash function that accepts and returns Uint8Array values.
The data to hash.
The hash digest.
Pure JavaScript SHA3-224 hash function that accepts and returns Uint8Array values.
The data to hash.
The hash digest.
Pure JavaScript SHA3-256 hash function that accepts and returns Uint8Array values.
The data to hash.
The hash digest.
Pure JavaScript SHA3-384 hash function that accepts and returns Uint8Array values.
The data to hash.
The hash digest.
Pure JavaScript SHA3-512 hash function that accepts and returns Uint8Array values.
The data to hash.
The hash digest.
Pure JavaScript SHA512 hash function that accepts and returns Uint8Array values.
The data to hash.
The hash digest.
Pure JavaScript SHA512/256 hash function that accepts and returns Uint8Array values.
The data to hash.
The hash digest.
Defines the shape of a Uint8Array Merkle root hash.