Crate borderless_hash

Source
Expand description

Provides the hash implementation for all borderless-primitives.

This library contains the implementation of the Hash256, that is used throughout the entire borderless stack. Internally, it uses the sha-3 hash function to digest binary data and actually generate the hash.

Re-exports§

pub use traits::Hashable;
pub use traits::Hashed;

Modules§

traits
Simple traits that are based on the Hash256 type

Macros§

calc_hash
Easy way to feed an arbitrary amount of data into the Hasher and retrieving its result.

Structs§

Hash256
Hasher
Hasher that produces the Hash256 as an output.
InvalidSliceLength
Error that indicates an invalid slice length.

Functions§

b16_display
Applies the hexadecimal-encoding scheme to some data but only returns the first eight characters.