Expand description
This crate defines the core traits and types used by the rest of the bc-rust.test library.
Modulesยง
- errors
- Core error types to be used in Result return types.
Errors defined in this module are typically one-to-one with traits defined in
crate::traits. - key_
material - A helper class used across the bc-rust library to hold bytes-like key material. The main purpose is to hold metadata about the contained key material such as the key type and entropy content to prevent accidental misuse security bugs, such as deriving cryptographic keys from uninitialized data. The core idea of this wrapper is to keep track of the usage of the key material, including the amount of entropy that it is presumed to contain in order to prevent users from accidentally using it inappropriately in a way that could lead to security weaknesses.
- suspendable_
state - Helper functions for standardizing serialization and deserialization of stateful objects.
- traits
- Provides simplified abstracted APIs over classes of cryptographic primitives, such as Hash, KDF, etc.